From 260657c0b850112a56d9001abde49d364de95840 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Mon, 27 Oct 2014 16:45:31 +0100 Subject: [PATCH] BackgroundCache: plug an Animation object leak We need to return early in case the animation file is the same, otherwise we'll create a new Animation object and leak the previous one. https://bugzilla.gnome.org/show_bug.cgi?id=739252 --- js/ui/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/background.js b/js/ui/background.js index 81d186eb1..82928e771 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -172,6 +172,7 @@ const BackgroundCache = new Lang.Class({ })); GLib.Source.set_name_by_id(id, '[gnome-shell] params.onLoaded'); } + return; } let animation = new Animation({ file: params.file });