diff --git a/gnome-desktop-plug-memory-leak.patch b/gnome-desktop-plug-memory-leak.patch new file mode 100644 index 0000000..4744123 --- /dev/null +++ b/gnome-desktop-plug-memory-leak.patch @@ -0,0 +1,38 @@ +From 436ca8f0797cbd1321893cdb8f6f1ee9cddfe42b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Mon, 26 Feb 2018 19:39:06 +0100 +Subject: bg-slide-show: Plug a memory leak + +https://bugzilla.gnome.org/show_bug.cgi?id=793854 +--- + libgnome-desktop/gnome-bg-slide-show.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/libgnome-desktop/gnome-bg-slide-show.c b/libgnome-desktop/gnome-bg-slide-show.c +index cb9b90b..c4674ba 100644 +--- a/libgnome-desktop/gnome-bg-slide-show.c ++++ b/libgnome-desktop/gnome-bg-slide-show.c +@@ -741,17 +741,20 @@ on_file_loaded (GFile *file, + + if (!loaded) { + g_task_return_error (task, error); ++ g_object_unref (task); + return; + } + + if (!parse_file_contents (g_task_get_source_object (task), contents, length, &error)) { + g_task_return_error (task, error); ++ g_object_unref (task); + g_free (contents); + return; + } + g_free (contents); + + g_task_return_boolean (task, TRUE); ++ g_object_unref (task); + } + + /** +-- +cgit v0.12 + diff --git a/gnome-desktop.changes b/gnome-desktop.changes index e612ba6..e47a3ba 100644 --- a/gnome-desktop.changes +++ b/gnome-desktop.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 30 07:02:29 UTC 2018 - bjorn.lie@gmail.com + +- Add gnome-desktop-plug-memory-leak.patch: bg-slide-show: Plug a + memory leak (bgo#793878). + ------------------------------------------------------------------- Wed Apr 11 08:18:21 UTC 2018 - bjorn.lie@gmail.com diff --git a/gnome-desktop.spec b/gnome-desktop.spec index 4522c97..b5d9a24 100644 --- a/gnome-desktop.spec +++ b/gnome-desktop.spec @@ -28,6 +28,8 @@ Source: http://download.gnome.org/sources/gnome-desktop/3.28/%{name}-%{v Source99: baselibs.conf # PATFH-FIX-OPENSUSE gnome-desktop-switch-Japanese-default-input-to-mozc.patch bnc#1029083 boo#1056289 qzhao@suse.com -- Switch new user's default input engine from "anthy" to "mozc" in gnome-desktop with Japanese language and ibus input frame-work condition. Patch1: gnome-desktop-switch-Japanese-default-input-to-mozc.patch +# PATCH-FIX-UPSTREAM gnome-desktop-plug-memory-leak.patch bgo#793878 -- bg-slide-show: Plug a memory leak +Patch2: gnome-desktop-plug-memory-leak.patch BuildRequires: fdupes BuildRequires: gobject-introspection-devel BuildRequires: intltool @@ -127,6 +129,7 @@ reasons. %prep %setup -q %patch1 -p1 +%patch2 -p1 translation-update-upstream %if 0%{?BUILD_FROM_VCS}