File gnome-desktop-plug-memory-leak.patch of Package gnome-desktop

From 436ca8f0797cbd1321893cdb8f6f1ee9cddfe42b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
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(+)

Index: gnome-desktop-3.26.2/libgnome-desktop/gnome-bg-slide-show.c
===================================================================
--- gnome-desktop-3.26.2.orig/libgnome-desktop/gnome-bg-slide-show.c
+++ gnome-desktop-3.26.2/libgnome-desktop/gnome-bg-slide-show.c
@@ -742,17 +742,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);
 }
 
 /**