Commit 3033a3df authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Paul Saman

Fix a-few-per-libvlc-instance memory leaks

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 7d43a66c
......@@ -945,7 +945,7 @@ int VLC_CleanUp( int i_object )
stats_HandlerDestroy( p_stats );
vlc_object_detach( (vlc_object_t*) p_stats );
vlc_object_release( (vlc_object_t *)p_stats );
// TODO: Delete it
vlc_object_destroy( p_stats );
}
/*
......@@ -2562,6 +2562,8 @@ static void InitDeviceValues( vlc_t *p_vlc )
p_connection = dbus_bus_get ( DBUS_BUS_SYSTEM, &error );
if( dbus_error_is_set( &error ) )
{
libhal_ctx_shutdown( ctx, &error );
libhal_ctx_free( ctx );
dbus_error_free( &error );
return;
}
......@@ -2622,6 +2624,7 @@ static void InitDeviceValues( vlc_t *p_vlc )
#ifdef HAVE_HAL_1
libhal_ctx_shutdown( ctx, NULL );
libhal_ctx_free( ctx );
#else
hal_shutdown( ctx );
#endif
......
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