summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2014-03-17 11:27:18 -0700
committerCosimo Cecchi <cosimoc@gnome.org>2014-03-17 11:27:18 -0700
commit5cbf9de0ab6fcdbbd760a6b6a5716e290e3e373a (patch)
tree9af90b7749f0d83f0b47f87d250ab6c68a1499f1
parent248f04c6a5a45b3d6af0cd498cedbe01a3fa8649 (diff)
parent6b955b12cff18319aa801d21bfcea309eedec539 (diff)
Merge pull request #768 from endlessm/shell/2026
Remove manual garbage collection
-rw-r--r--wikipedia/views/domain_wiki_view.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/wikipedia/views/domain_wiki_view.js b/wikipedia/views/domain_wiki_view.js
index 7483767..a2f7419 100644
--- a/wikipedia/views/domain_wiki_view.js
+++ b/wikipedia/views/domain_wiki_view.js
@@ -1,6 +1,5 @@
const EndlessWikipedia = imports.wikipedia.EndlessWikipedia;
const Lang = imports.lang;
-const System = imports.system;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Gdk = imports.gi.Gdk;
@@ -57,16 +56,6 @@ const DomainWikiView = new Lang.Class({
})
this._window.show_all();
-
- // A temporary measure to prevent memory usage from blowing up. The app
- // will sometimes allocate pixbufs as part of its draw function and gjs
- // will not cleanup unused pixbufs unless we force it to.
- this._window.connect_after("draw", function () {
- Gdk.threads_add_idle(GLib.PRIORITY_LOW, function () {
- System.gc();
- return false;
- });
- });
},
create_front_page: function(){