[vlc-devel] commit: growl: fix object leak. ( Rémi Duraffort )

git version control git at videolan.org
Tue May 5 21:44:47 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue May  5 21:44:05 2009 +0200| [e1252db2ed61b451972f766982589eab230e9750] | committer: Rémi Duraffort 

growl: fix object leak.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1252db2ed61b451972f766982589eab230e9750
---

 modules/misc/notify/growl.m     |    1 -
 modules/misc/notify/growl_udp.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/misc/notify/growl.m b/modules/misc/notify/growl.m
index 6026d12..c0503b0 100644
--- a/modules/misc/notify/growl.m
+++ b/modules/misc/notify/growl.m
@@ -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 )
diff --git a/modules/misc/notify/growl_udp.c b/modules/misc/notify/growl_udp.c
index 1b2b79e..72dfc9c 100644
--- a/modules/misc/notify/growl_udp.c
+++ b/modules/misc/notify/growl_udp.c
@@ -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 )




More information about the vlc-devel mailing list