[gnome-photos/gnome-3-10] base-item: Plug a memory leak
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-10] base-item: Plug a memory leak
- Date: Thu, 5 Sep 2013 14:23:20 +0000 (UTC)
commit eec4982db385a966577602c30a81b35c3e1fc6f1
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]