Changed unref -> ref_sink for GTK menus

This commit is contained in:
nathan 2015-11-09 22:17:18 +01:00
parent 4417b2e536
commit 6ae7061f2f

View File

@ -57,7 +57,8 @@ class GtkTypeSystemTray extends SystemTray {
this.widgets.clear();
// unrefs the children too
libgobject.g_object_unref(this.menu);
// GTK menu needs a "ref_sink"
libgobject.g_object_ref_sink(this.menu);
this.menu = null;
synchronized (this.menuEntries) {