projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b99d014
)
Bug 23825 – Leak in update_info_mount_state
author
David Zeuthen
<davidz@redhat.com>
Fri, 18 Sep 2009 20:22:12 +0000
(16:22 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Fri, 18 Sep 2009 20:22:12 +0000
(16:22 -0400)
src/devkit-disks-device.c
patch
|
blob
|
history
diff --git
a/src/devkit-disks-device.c
b/src/devkit-disks-device.c
index
5ef3df0
..
7367012
100644
(file)
--- a/
src/devkit-disks-device.c
+++ b/
src/devkit-disks-device.c
@@
-2687,7
+2687,6
@@
static gboolean
update_info_mount_state (DevkitDisksDevice *device)
{
DevkitDisksMountMonitor *monitor;
- DevkitDisksMount *mount;
GList *mounts;
gboolean was_mounted;
@@
-2710,7
+2709,6
@@
update_info_mount_state (DevkitDisksDevice *device)
guint n;
gchar **mount_paths;
- mount = g_object_ref (mounts->data);
mount_paths = g_new0 (gchar *, g_list_length (mounts) + 1);
for (l = mounts, n = 0; l != NULL; l = l->next, n++) {
mount_paths[n] = g_strdup (devkit_disks_mount_get_mount_path (DEVKIT_DISKS_MOUNT (l->data)));