[recipes/todoist: 7/12] Fix segmentation fault in get_project_data_callback method
- From: Ekta Nandwani <ektan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/todoist: 7/12] Fix segmentation fault in get_project_data_callback method
- Date: Fri, 27 Oct 2017 15:07:02 +0000 (UTC)
commit 36fad26bd2b96fa5ac54b2821c187909b4cff506
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Sat Aug 19 22:36:46 2017 +0530
Fix segmentation fault in get_project_data_callback method
src/gr-shopping-list-exporter.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-shopping-list-exporter.c b/src/gr-shopping-list-exporter.c
index 055b909..b9e209d 100644
--- a/src/gr-shopping-list-exporter.c
+++ b/src/gr-shopping-list-exporter.c
@@ -216,8 +216,10 @@ get_project_data_callback (RestProxyCall *call,
complete_items (exporter, items);
}
out:
- g_object_unref (parser);
- g_object_unref (object);
+ if (parser)
+ g_object_unref (parser);
+ if (object)
+ json_object_unref (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]