[gnome-shell/gbsneto/dont-create-so-many-icons-pretty-please: 3/3] baseAppView: Destroy icon when removing
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/dont-create-so-many-icons-pretty-please: 3/3] baseAppView: Destroy icon when removing
- Date: Thu, 21 Nov 2019 21:25:38 +0000 (UTC)
commit 33778146dc2071925cccc1c421390d651d543fbe
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 21 18:21:44 2019 -0300
baseAppView: Destroy icon when removing
We cannot rely on the garbage collector to do that in a timely
manner, so destroy it explicitly.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/841
js/ui/appDisplay.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a49ebe09a8..5501c94c05 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -190,6 +190,8 @@ var BaseAppView = GObject.registerClass({
this._allItems.splice(iconIndex, 1);
this._grid.removeItem(icon);
delete this._items[icon.id];
+
+ icon.destroy();
});
// Add new app icons
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]