[gnome-photos/gnome-3-26] properties-dialog: Don't leak the error



commit 0cdca1a6ba6d8d3c5b24125e861d2c5d9aec53fc
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Nov 6 16:02:43 2017 +0100

    properties-dialog: Don't leak the error

 src/photos-properties-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 22129b4..04a6bb9 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -232,6 +232,7 @@ photos_properties_dialog_location_query_executed (GObject *source_object, GAsync
   if (error != NULL)
     {
       g_warning ("Unable to query latitude and longitude: %s", error->message);
+      g_error_free (error);
       goto out;
     }
 


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