Bug 23825 – Leak in update_info_mount_state
authorDavid Zeuthen <davidz@redhat.com>
Fri, 18 Sep 2009 20:22:12 +0000 (16:22 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 18 Sep 2009 20:22:12 +0000 (16:22 -0400)
src/devkit-disks-device.c

index 5ef3df0..7367012 100644 (file)
@@ -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)));