From: David Zeuthen Date: Fri, 18 Sep 2009 20:22:12 +0000 (-0400) Subject: Bug 23825 – Leak in update_info_mount_state X-Git-Tag: upstream/2.1.2~796 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dc276f0d8220718e714f8721a10319699515f1d;p=platform%2Fupstream%2Fudisks2.git Bug 23825 – Leak in update_info_mount_state --- diff --git a/src/devkit-disks-device.c b/src/devkit-disks-device.c index 5ef3df0..7367012 100644 --- 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)));