growl: fix object leak.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 5 May 2009 19:44:05 +0000 (21:44 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 5 May 2009 19:44:05 +0000 (21:44 +0200)
modules/misc/notify/growl.m
modules/misc/notify/growl_udp.c

index 6026d12..c0503b0 100644 (file)
@@ -162,7 +162,6 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     p_input = playlist_CurrentInput( (playlist_t*)p_this );
 
     if( !p_input ) return VLC_SUCCESS;
-    vlc_object_hold( p_input );
 
     char *psz_name = input_item_GetName( input_GetItem( p_input ) );
     if( p_input->b_dead || !psz_name )
index 1b2b79e..72dfc9c 100644 (file)
@@ -124,7 +124,6 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     p_input = playlist_CurrentInput( (playlist_t*)p_this );
 
     if( !p_input ) return VLC_SUCCESS;
-    vlc_object_hold( p_input );
 
     char *psz_name = input_item_GetName( input_GetItem( p_input ) );
     if( p_input->b_dead || !psz_name )