Commit a0f44bd5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix memory leak (CID 93)

Code removed from master.
parent f8f418b8
...@@ -89,6 +89,7 @@ mediacontrol_Instance* mediacontrol_new_from_object( int vlc_object_id, ...@@ -89,6 +89,7 @@ mediacontrol_Instance* mediacontrol_new_from_object( int vlc_object_id,
if( ! retval->p_playlist || ! retval->p_intf ) if( ! retval->p_playlist || ! retval->p_intf )
{ {
RAISE( mediacontrol_InternalException, "no interface available" ); RAISE( mediacontrol_InternalException, "no interface available" );
free( retval );
return NULL; return NULL;
} }
return retval; return retval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment