[vlc-commits] audioscrobbler: fix object leak in error path
Rafaël Carré
git at videolan.org
Mon Aug 1 02:12:52 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Jul 31 17:12:47 2011 -0400| [ae3390dc8dc90eab07ef8fff8218939f01aafb60] | committer: Rafaël Carré
audioscrobbler: fix object leak in error path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae3390dc8dc90eab07ef8fff8218939f01aafb60
---
modules/misc/audioscrobbler.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index cd29830..db7bef1 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -940,7 +940,10 @@ static int ReadMetaData( intf_thread_t *p_this )
p_item = input_GetItem( p_input );
if( !p_item )
+ {
+ vlc_object_release( p_input );
return VLC_SUCCESS;
+ }
char *psz_meta;
#define ALLOC_ITEM_META( a, b ) \
More information about the vlc-commits
mailing list