telepathy: don't Close() twice. one time when we encounter an error, one more time...
authorRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 00:05:44 +0000 (00:05 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 00:05:44 +0000 (00:05 +0000)
modules/misc/notify/telepathy.c

index f37f005..a8e5886 100644 (file)
@@ -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 );