[gvfs] goa: Fix a memory leak



commit e8402a81d08e787038b463c0ceb61086ee269b34
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Oct 20 18:58:52 2014 +0200

    goa: Fix a memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738878

 monitor/goa/goavolume.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/monitor/goa/goavolume.c b/monitor/goa/goavolume.c
index 83f038e..7db021a 100644
--- a/monitor/goa/goavolume.c
+++ b/monitor/goa/goavolume.c
@@ -179,7 +179,11 @@ mount_enclosing_volume_cb (GObject *source_object, GAsyncResult *res, gpointer u
         }
       else
         {
-          g_warning ("Already mounted %s: %s", g_file_get_uri (root), error->message);
+          gchar *uri;
+
+          uri = g_file_get_uri (root);
+          g_warning ("Already mounted %s: %s", uri, error->message);
+          g_free (uri);
           g_error_free (error);
         }
     }


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