r49214 - in /desktop/unstable/gnome-shell/debian: changelog patches/0001-background-free-MetaBackground-explicitly.patch patches/series

jbicha-guest at users.alioth.debian.org jbicha-guest at users.alioth.debian.org
Fri Jul 1 00:18:22 UTC 2016


Author: jbicha-guest
Date: Fri Jul  1 00:18:21 2016
New Revision: 49214

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=49214
Log:
0001-background-free-MetaBackground-explicitly.patch:
Patch from gnome-3-20 branch to fix memory leak when changing background

Added:
    desktop/unstable/gnome-shell/debian/patches/0001-background-free-MetaBackground-explicitly.patch
Modified:
    desktop/unstable/gnome-shell/debian/changelog
    desktop/unstable/gnome-shell/debian/patches/series

Modified: desktop/unstable/gnome-shell/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-shell/debian/changelog?rev=49214&op=diff
==============================================================================
--- desktop/unstable/gnome-shell/debian/changelog	[utf-8] (original)
+++ desktop/unstable/gnome-shell/debian/changelog	[utf-8] Fri Jul  1 00:18:21 2016
@@ -8,6 +8,8 @@
   * Refresh patches.
 
   [ Jeremy Bicha ]
+  * 0001-background-free-MetaBackground-explicitly.patch:
+    Patch from gnome-3-20 branch to fix memory leak when changing background
   * Update apport hook to recognize gdm3 and to not try to attach
     obsolete log files
   * Update Ubuntu's dependency on gnome-icon-theme-full to

Added: desktop/unstable/gnome-shell/debian/patches/0001-background-free-MetaBackground-explicitly.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-shell/debian/patches/0001-background-free-MetaBackground-explicitly.patch?rev=49214&op=file
==============================================================================
--- desktop/unstable/gnome-shell/debian/patches/0001-background-free-MetaBackground-explicitly.patch	(added)
+++ desktop/unstable/gnome-shell/debian/patches/0001-background-free-MetaBackground-explicitly.patch	[utf-8] Fri Jul  1 00:18:21 2016
@@ -0,0 +1,38 @@
+From 71c26cc7ce8da0c1aec7ff98604f479e7e9ef675 Mon Sep 17 00:00:00 2001
+From: Hyungwon Hwang <hyungwon.hwang7 at gmail.com>
+Date: Fri, 10 Jun 2016 19:34:48 +0900
+Subject: [PATCH] background: free MetaBackground explicitly when its
+ MetaBackgroundActor is destroyed
+
+The memory which MetaBackground resides is freed automatically, when its
+wrapper object Background is freed by garbage collection. But because the
+memory for MetaBackground is huge, changing the background or changing the
+background mode repeatedly makes a lot of memory to be in use until garbage
+collection runs.
+
+This patch frees the MetaBackground object explicitly when its
+MetaBackgroundActor is destroyed which is the moment that the memory in the
+object is not used anymore.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=766353
+
+Signed-off-by: Hyungwon Hwang <hyungwon.hwang7 at gmail.com>
+---
+ js/ui/background.js | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/js/ui/background.js b/js/ui/background.js
+index 5db1e6c..762c76c 100644
+--- a/js/ui/background.js
++++ b/js/ui/background.js
+@@ -696,6 +696,7 @@ const BackgroundManager = new Lang.Class({
+                            time: FADE_ANIMATION_TIME,
+                            transition: 'easeOutQuad',
+                            onComplete: function() {
++                               oldBackgroundActor.background.run_dispose();
+                                oldBackgroundActor.destroy();
+                            }
+                          });
+-- 
+2.8.1
+

Modified: desktop/unstable/gnome-shell/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-shell/debian/patches/series?rev=49214&op=diff
==============================================================================
--- desktop/unstable/gnome-shell/debian/patches/series	[utf-8] (original)
+++ desktop/unstable/gnome-shell/debian/patches/series	[utf-8] Fri Jul  1 00:18:21 2016
@@ -1,3 +1,4 @@
+0001-background-free-MetaBackground-explicitly.patch
 27-nm-libexec-path.patch
 #30-remoteMenu-Prevent-the-shell-from-becoming-unrespons.patch
 41-handle-logind-fail.patch




More information about the pkg-gnome-commits mailing list