[libdazzle] shortcuts: release descendant link
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] shortcuts: release descendant link
- Date: Mon, 17 Jul 2017 10:54:58 +0000 (UTC)
commit 8823b25ace8f067170652b59692f965b78132a38
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 17 03:54:25 2017 -0700
shortcuts: release descendant link
The descendant is referenced when we add it to the list, we
need to release it as well.
src/shortcuts/dzl-shortcut-controller.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-controller.c b/src/shortcuts/dzl-shortcut-controller.c
index 948ccb8..1e26107 100644
--- a/src/shortcuts/dzl-shortcut-controller.c
+++ b/src/shortcuts/dzl-shortcut-controller.c
@@ -201,6 +201,7 @@ dzl_shortcut_controller_remove (DzlShortcutController *self,
g_assert (DZL_IS_SHORTCUT_CONTROLLER (descendant));
g_queue_unlink (&priv->descendants, &dpriv->descendants_link);
+ g_object_unref (descendant);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]