[gnome-shell] BackgroundCache: plug an Animation object leak
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] BackgroundCache: plug an Animation object leak
- Date: Mon, 27 Oct 2014 16:52:09 +0000 (UTC)
commit 260657c0b850112a56d9001abde49d364de95840
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Oct 27 16:45:31 2014 +0100
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index 81d186e..82928e7 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 });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]