Commit 6bef1262 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/core.c: Don't leak the p_instance.

parent 593aeb2b
...@@ -113,6 +113,7 @@ void libvlc_destroy( libvlc_instance_t *p_instance, libvlc_exception_t *p_e ) ...@@ -113,6 +113,7 @@ void libvlc_destroy( libvlc_instance_t *p_instance, libvlc_exception_t *p_e )
vlc_mutex_destroy( &p_instance->event_callback_lock); vlc_mutex_destroy( &p_instance->event_callback_lock);
libvlc_InternalCleanup( p_instance->p_libvlc_int ); libvlc_InternalCleanup( p_instance->p_libvlc_int );
libvlc_InternalDestroy( p_instance->p_libvlc_int, VLC_FALSE ); libvlc_InternalDestroy( p_instance->p_libvlc_int, VLC_FALSE );
free( p_instance );
} }
int libvlc_get_vlc_id( libvlc_instance_t *p_instance ) int libvlc_get_vlc_id( libvlc_instance_t *p_instance )
......
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