Commit 7e6bc77e authored by Rafaël Carré's avatar Rafaël Carré

telepathy: don't Close() twice. one time when we encounter an error, one more time when VLC exits.

parent 1995f882
......@@ -193,7 +193,6 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
switch( SendToTelepathy( p_intf, "" ) )
{
case VLC_ENOMEM:
Close( p_this );
return VLC_ENOMEM;
default:
return VLC_SUCCESS;
......@@ -208,7 +207,6 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
if( SendToTelepathy( p_intf, psz_buf ) == VLC_ENOMEM )
{
free( psz_buf );
Close( p_this );
return VLC_ENOMEM;
}
free( psz_buf );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment