[gnome-software] PK session service: Fix a memory leak on shutdown
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] PK session service: Fix a memory leak on shutdown
- Date: Tue, 17 Feb 2015 15:27:41 +0000 (UTC)
commit fe2c0649cee36f904fd05e2100af4b9ac83ebf9d
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Feb 17 13:59:22 2015 +0100
PK session service: Fix a memory leak on shutdown
src/gs-dbus-helper.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-dbus-helper.c b/src/gs-dbus-helper.c
index 1239bb5..a960981 100644
--- a/src/gs-dbus-helper.c
+++ b/src/gs-dbus-helper.c
@@ -811,6 +811,11 @@ gs_dbus_helper_dispose (GObject *object)
g_clear_object (&dbus_helper->modify_interface);
}
+ if (dbus_helper->modify2_interface != NULL) {
+ g_dbus_interface_skeleton_unexport (dbus_helper->modify2_interface);
+ g_clear_object (&dbus_helper->modify2_interface);
+ }
+
g_clear_object (&dbus_helper->task);
G_OBJECT_CLASS (gs_dbus_helper_parent_class)->dispose (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]