Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve dbus clean-up.
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Oct 22, 2013
1 parent 1e0d304 commit c6c1600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usb_moded-dbus.c
Expand Up @@ -290,6 +290,7 @@ void usb_moded_dbus_cleanup(void)
/* clean up system bus connection */
if (dbus_connection_sys != NULL)
{
dbus_bus_release_name(dbus_connection_sys, USB_MODE_SERVICE, NULL);
dbus_connection_remove_filter(dbus_connection_sys, msg_handler, NULL);
dbus_connection_unref(dbus_connection_sys);
dbus_connection_sys = NULL;
Expand Down

0 comments on commit c6c1600

Please sign in to comment.