Skip to content

Commit

Permalink
[settings] Unexport D-Bus object when plugin is stopped. JB#48413
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 22, 2020
1 parent 9bc7d11 commit 7af7228
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/settings/settings_plugin.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2018-2019 Jolla Ltd.
* Copyright (C) 2018-2019 Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2018-2020 Jolla Ltd.
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
*
* You may use this file under the terms of BSD license as follows:
*
Expand Down Expand Up @@ -543,6 +543,8 @@ settings_plugin_stop(
self->own_name_id = 0;
}
if (self->iface) {
g_dbus_interface_skeleton_unexport
(G_DBUS_INTERFACE_SKELETON(self->iface));
gutil_disconnect_handlers(self->iface, self->dbus_call_id,
G_N_ELEMENTS(self->dbus_call_id));
g_object_unref(self->iface);
Expand Down

0 comments on commit 7af7228

Please sign in to comment.