Fix the bug for dbus connection and proxy deinitialization
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-common.c
index 1fc5bcf..d7a9e49 100644 (file)
@@ -1784,10 +1784,13 @@ BT_EXPORT_API int bluetooth_unregister_callback(void)
 
        _bt_set_user_data(BT_COMMON, NULL, NULL);
 
+       _bt_gdbus_deinit_proxys();
+
        if (system_gconn) {
                g_object_unref(system_gconn);
                system_gconn = NULL;
        }
+
        return BLUETOOTH_ERROR_NONE;
 }