Properly free hal ctx when finished with it.
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 16 Apr 2008 11:48:05 +0000 (13:48 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 16 Apr 2008 11:58:56 +0000 (13:58 +0200)
src/libvlc-common.c

index 85b94e9..a3bb83b 100644 (file)
@@ -2056,6 +2056,7 @@ static void InitDeviceValues( libvlc_int_t *p_vlc )
 #ifdef HAVE_HAL_1
         libhal_ctx_shutdown( ctx, NULL );
         dbus_connection_unref( p_connection );
 #ifdef HAVE_HAL_1
         libhal_ctx_shutdown( ctx, NULL );
         dbus_connection_unref( p_connection );
+        libhal_ctx_free( ctx );
 #else
         hal_shutdown( ctx );
 #endif
 #else
         hal_shutdown( ctx );
 #endif