[vlc-devel] commit: Fix memory leak (CID 93) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 31 22:20:11 CEST 2008
vlc | branch: 0.8.6-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 23:18:07 2008 +0300| [a0f44bd5efd25b11e2c31ee01b537a109bb87883]
Fix memory leak (CID 93)
Code removed from master.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0f44bd5efd25b11e2c31ee01b537a109bb87883
---
src/control/mediacontrol_core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/control/mediacontrol_core.c b/src/control/mediacontrol_core.c
index 4d770ad..7e0e5b3 100644
--- a/src/control/mediacontrol_core.c
+++ b/src/control/mediacontrol_core.c
@@ -89,6 +89,7 @@ mediacontrol_Instance* mediacontrol_new_from_object( int vlc_object_id,
if( ! retval->p_playlist || ! retval->p_intf )
{
RAISE( mediacontrol_InternalException, "no interface available" );
+ free( retval );
return NULL;
}
return retval;
More information about the vlc-devel
mailing list