Fix a very unlikely memleak
authorRafaël Carré <funman@videolan.org>
Fri, 16 May 2008 08:15:23 +0000 (10:15 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 16 May 2008 08:15:23 +0000 (10:15 +0200)
src/libvlc-common.c

index 42b2d00..f2e5613 100644 (file)
@@ -1998,6 +1998,7 @@ static void InitDeviceValues( libvlc_int_t *p_vlc )
     p_connection = dbus_bus_get ( DBUS_BUS_SYSTEM, &error );
     if( dbus_error_is_set( &error ) || !p_connection )
     {
+        libhal_ctx_free( ctx );
         dbus_error_free( &error );
         return;
     }