From 14189e6827057b39a6174978c765ab02b05b7e19 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 4 Apr 2013 11:35:50 -0400 Subject: [PATCH] shellEntry: Destroy entry menus when the entry actors are destroyed This ensures that a menu and manager aren't sticking around. https://bugzilla.gnome.org/show_bug.cgi?id=697295 --- js/ui/shellEntry.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index 61e43a9e3..2256af070 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -171,4 +171,10 @@ function addContextMenu(entry, params) { entry.connect('button-press-event', Lang.bind(null, _onButtonPressEvent, entry)); entry.connect('popup-menu', Lang.bind(null, _onPopup, entry)); + + entry.connect('destroy', function() { + entry.menu.destroy(); + entry.menu = null; + entry._menuManager = null; + }); }