From b78e00f372fcac01224743dfc3e26e841168c9c7 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sun, 23 Feb 2014 16:18:46 +0100 Subject: [PATCH] search: destroy result actors before forgetting about them We can't let live (ie, never destroyed) actors undergo GC, because they will emit :destroy signals during finalization and assert/crash libmozjs. Properly destroy all actors before letting the GC free them. https://bugzilla.gnome.org/show_bug.cgi?id=724798 --- js/ui/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/search.js b/js/ui/search.js index 50868e386..e9ae6c822 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -315,6 +315,8 @@ const SearchResultsBase = new Lang.Class({ }, clear: function() { + for (let resultId in this._resultDisplays) + this._resultDisplays[resultId].actor.destroy(); this._resultDisplays = {}; this._clearResultDisplay(); this.actor.hide();