[gvfs/wip/udisks2] udisks2: don't leak the processes array
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/udisks2] udisks2: don't leak the processes array
- Date: Thu, 29 Sep 2011 18:13:42 +0000 (UTC)
commit 330216775fbf22baa7089834f78d9a3d20e4f677
Author: David Zeuthen <davidz redhat com>
Date: Thu Sep 29 14:13:31 2011 -0400
udisks2: don't leak the processes array
Signed-off-by: David Zeuthen <davidz redhat com>
monitor/udisks2/gvfsudisks2mount.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index ed8986c..a4e105e 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -679,7 +679,6 @@ unmount_cb (GObject *source_object,
const gchar *choices[3] = {NULL, NULL, NULL};
const gchar *message;
- /* TODO: get processes */
processes = get_busy_processes (udisks_filesystem_get_mount_points (filesystem));
if (data->mount_op_reply_handler_id == 0)
@@ -707,6 +706,8 @@ unmount_cb (GObject *source_object,
on_retry_timer_cb,
data);
}
+
+ g_array_free (processes, TRUE);
goto out;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]