[gnome-flashback/gnome-3-32] shell: fix memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-32] shell: fix memory leak
- Date: Thu, 18 Jul 2019 17:47:01 +0000 (UTC)
commit 2399195f446c29b48d5e654e901566654131b11a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Jul 18 20:17:44 2019 +0300
shell: fix memory leak
https://bugs.launchpad.net/ubuntu/+source/gnome-flashback/+bug/1760336
gnome-flashback/libshell/flashback-shell.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/gnome-flashback/libshell/flashback-shell.c b/gnome-flashback/libshell/flashback-shell.c
index a3eb49b..896c2bf 100644
--- a/gnome-flashback/libshell/flashback-shell.c
+++ b/gnome-flashback/libshell/flashback-shell.c
@@ -437,6 +437,14 @@ flashback_shell_finalize (GObject *object)
shell->bus_name = 0;
}
+ if (shell->iface != NULL)
+ {
+ g_dbus_interface_skeleton_unexport (shell->iface);
+
+ g_object_unref (shell->iface);
+ shell->iface = NULL;
+ }
+
if (shell->grabbed_accelerators)
{
g_hash_table_destroy (shell->grabbed_accelerators);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]