diff -Nru shotwell-0.32.7/debian/changelog shotwell-0.32.7/debian/changelog
--- shotwell-0.32.7/debian/changelog	2024-07-02 13:36:52.000000000 +0200
+++ shotwell-0.32.7/debian/changelog	2024-10-22 11:05:07.000000000 +0200
@@ -1,3 +1,10 @@
+shotwell (0.32.7-2) unstable; urgency=medium
+
+  * d/p/memory-leak.patch: Fix memory leak in slide show view.
+    Closes #1085721.
+
+ -- Nathan Pratta Teodosio <nathan.teodo...@canonical.com>  Tue, 22 Oct 2024 11:05:07 +0200
+
 shotwell (0.32.7-1) unstable; urgency=medium
 
   * New upstream release (Closes: ##1074582).
diff -Nru shotwell-0.32.7/debian/patches/memory-leak.patch shotwell-0.32.7/debian/patches/memory-leak.patch
--- shotwell-0.32.7/debian/patches/memory-leak.patch	1970-01-01 01:00:00.000000000 +0100
+++ shotwell-0.32.7/debian/patches/memory-leak.patch	2024-10-21 10:29:57.000000000 +0200
@@ -0,0 +1,38 @@
+From: Jens Georg <m...@jensge.org>
+Subject: Fix memory leak in slideshow.
+Bug: https://gitlab.gnome.org/GNOME/shotwell/-/issues/5123
+Bug-Ubuntu: https://launchpad.net/bugs/2080004
+Origin: https://gitlab.gnome.org/GNOME/shotwell/-/commit/fa6884f73af83ccbc72b8fe0f7bc63a00630ee0b.patch
+Date: Sat, 7 Sep 2024 12:19:50 +0200
+Last-Update: 2024-09-26
+
+--- a/src/PhotoPage.vala
++++ b/src/PhotoPage.vala
+@@ -966,7 +966,7 @@ public abstract class EditingHostPage :
+         return photo.has_transformations() || photo.has_editable();
+     }
+     
+-    private void on_pixbuf_fetched(Photo photo, owned Gdk.Pixbuf? pixbuf, Error? err) {
++    private void on_pixbuf_fetched(Photo photo, Gdk.Pixbuf? pixbuf, Error? err) {
+         // if not of the current photo, nothing more to do
+         if (!photo.equals(get_photo()))
+             return;
+@@ -987,6 +987,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
+ 
+                     if (tool_pixbuf != null) {
+                         pixbuf = tool_pixbuf;
++                        pixbuf.ref();
+                         max_dim = tool_pixbuf_dim;
+                     }
+                 } catch(Error err) {
+--- a/src/PixbufCache.vala
++++ b/src/PixbufCache.vala
+@@ -80,7 +80,7 @@ public class PixbufCache : Object {
+     private Gee.ArrayList<Photo> lru = new Gee.ArrayList<Photo>();
+     private Gee.HashMap<Photo, FetchJob> in_progress = new Gee.HashMap<Photo, FetchJob>();
+     
+-    public signal void fetched(Photo photo, owned Gdk.Pixbuf? pixbuf, Error? err);
++    public signal void fetched(Photo photo, Gdk.Pixbuf? pixbuf, Error? err);
+     
+     public PixbufCache(SourceCollection sources, PhotoType type, Scaling scaling, int max_count,
+         CacheFilter? filter = null) {
diff -Nru shotwell-0.32.7/debian/patches/series shotwell-0.32.7/debian/patches/series
--- shotwell-0.32.7/debian/patches/series	2023-06-28 21:35:52.000000000 +0200
+++ shotwell-0.32.7/debian/patches/series	2024-09-26 11:06:33.000000000 +0200
@@ -0,0 +1 @@
+memory-leak.patch

Reply via email to