[gnome-photos/gnome-3-26] organize-collection-view: Don't leak the newly created URN
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-26] organize-collection-view: Don't leak the newly created URN
- Date: Wed, 14 Feb 2018 22:16:46 +0000 (UTC)
commit f8192de818aabaac6f37c0c25f5c445ba915040b
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Feb 6 22:36:25 2018 +0100
organize-collection-view: Don't leak the newly created URN
Fallout from 23919376f98ee6aba56af7aafd3639913a13b590
src/photos-organize-collection-view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-organize-collection-view.c b/src/photos-organize-collection-view.c
index 4af11d7e..b5e7cd5a 100644
--- a/src/photos-organize-collection-view.c
+++ b/src/photos-organize-collection-view.c
@@ -121,7 +121,7 @@ photos_organize_collection_view_create_collection_executed (GObject *source_obje
GError *error;
GtkTreeIter iter;
GtkTreePath *path = NULL;
- const gchar *created_urn;
+ gchar *created_urn = NULL;
error = NULL;
created_urn = photos_create_collection_job_finish (col_job, res, &error);
@@ -159,6 +159,7 @@ photos_organize_collection_view_create_collection_executed (GObject *source_obje
out:
g_clear_object (&set_job);
+ g_free (created_urn);
gtk_tree_path_free (path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]