diff options
author | Debarshi Ray <debarshir@gnome.org> | 2014-10-20 18:58:52 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2014-10-21 11:14:15 +0200 |
commit | e8402a81d08e787038b463c0ceb61086ee269b34 (patch) | |
tree | c9ba372c1227406ba9c61af145040de9c4dd94e0 /monitor/goa | |
parent | 191491810f9a48aa13108c90343df52d2a67cbae (diff) | |
download | gvfs-e8402a81d08e787038b463c0ceb61086ee269b34.tar.gz |
goa: Fix a memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=738878
Diffstat (limited to 'monitor/goa')
-rw-r--r-- | 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 83f038e6..7db021a2 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); } } |