mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
backgroundMenu: destroy menu when actor is destroyed
This fixes a leak. https://bugzilla.gnome.org/show_bug.cgi?id=697119
This commit is contained in:
parent
284d821233
commit
3c1f389e25
1 changed files with 6 additions and 0 deletions
|
|
@ -55,4 +55,10 @@ function addBackgroundMenu(actor) {
|
|||
openMenu();
|
||||
});
|
||||
actor.add_action(clickAction);
|
||||
|
||||
actor.connect('destroy', function() {
|
||||
actor._backgroundMenu.destroy();
|
||||
actor._backgroundMenu = null;
|
||||
actor._backgroundManager = null;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue