[gnome-photos] base-item: Plug a memory leak



commit 76a0215cf7552246d7e948d91d3af845720f28e9
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Sep 5 16:20:20 2013 +0200

    base-item: Plug a memory leak

 src/photos-base-item.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 25a3bc1..1bea20e 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -230,10 +230,13 @@ photos_base_item_create_thumbnail_in_thread_func (gpointer data, gpointer user_d
   if (error != NULL)
     {
       g_task_return_error (task, error);
-      return;
+      goto out;
     }
 
   g_task_return_boolean (task, op_res);
+
+ out:
+  g_object_unref (task);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]