Commit 4e4731d6 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Properly cleanup hal connection when connecting to dbuse failed.

parent 36fbb333
...@@ -1795,6 +1795,11 @@ static void InitDeviceValues( libvlc_int_t *p_vlc ) ...@@ -1795,6 +1795,11 @@ static void InitDeviceValues( libvlc_int_t *p_vlc )
p_connection = dbus_bus_get ( DBUS_BUS_SYSTEM, &error ); p_connection = dbus_bus_get ( DBUS_BUS_SYSTEM, &error );
if( dbus_error_is_set( &error ) ) if( dbus_error_is_set( &error ) )
{ {
#ifdef HAVE_HAL_1
libhal_ctx_shutdown( ctx, NULL );
#else
hal_shutdown( ctx );
#endif
dbus_error_free( &error ); dbus_error_free( &error );
return; return;
} }
......
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