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



commit bb0a7571a15d148b6b70988296d7635c7b1ca5ce
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 4a746c7..f22ce3f 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -224,6 +224,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]