[gvfs] goa: Fix a memory leak
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] goa: Fix a memory leak
- Date: Tue, 21 Oct 2014 09:14:28 +0000 (UTC)
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]