[gvfs] Avoid leaking volumes when removing them
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] Avoid leaking volumes when removing them
- Date: Thu, 5 Nov 2009 23:33:37 +0000 (UTC)
commit e08ea6cd747969ec548a3285e1ec55f26d78cf1e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 5 23:28:19 2009 +0000
Avoid leaking volumes when removing them
monitor/afc/afcvolumemonitor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/monitor/afc/afcvolumemonitor.c b/monitor/afc/afcvolumemonitor.c
index 76f4303..91b3e41 100644
--- a/monitor/afc/afcvolumemonitor.c
+++ b/monitor/afc/afcvolumemonitor.c
@@ -65,6 +65,7 @@ g_vfs_afc_monitor_remove_volume (GVfsAfcVolumeMonitor *self,
g_print ("removing volume for device uuid '%s'\n", uuid);
self->volumes = g_list_remove (self->volumes, volume);
g_signal_emit_by_name (self, "volume-removed", volume);
+ g_object_unref (volume);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]