From 90ec55fce364996d669ea29bc36a710f6e56e5c8 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 16 Feb 2018 23:57:18 +0300 Subject: [PATCH] vala-panel: fix widget has extra ref. --- lib/valapanel-plugin-appmenu.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/valapanel-plugin-appmenu.vala b/lib/valapanel-plugin-appmenu.vala index 188d3803..1c97a295 100644 --- a/lib/valapanel-plugin-appmenu.vala +++ b/lib/valapanel-plugin-appmenu.vala @@ -62,6 +62,10 @@ public class GlobalMenuApplet: Applet this.add(layout); show_all(); } + ~GlobalMenuApplet() + { + layout.unref(); + } #if NEW public override Widget get_settings_ui() {