summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystem.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-07-03 22:46:00 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-07-03 22:46:00 +0000
commit8f6aa13b050d00ba7916d000812b236c13b1ca04 (patch)
tree28d76030cd33972db90ce3b63610b72402c9c8b6 /gtk/gtkfilesystem.c
parent2f1ef69fb759bdf99b9b0198b51b7ec21c718380 (diff)
downloadgdk-pixbuf-8f6aa13b050d00ba7916d000812b236c13b1ca04.tar.gz
Fix a memory leak. Patch by Christian Persch.
* gtk/gtkfilesystem.c (get_volumes_list): Fix a memory leak. Patch by Christian Persch. svn path=/trunk/; revision=20752
Diffstat (limited to 'gtk/gtkfilesystem.c')
-rw-r--r--gtk/gtkfilesystem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c
index 83a8b2c7c..f4006f526 100644
--- a/gtk/gtkfilesystem.c
+++ b/gtk/gtkfilesystem.c
@@ -418,6 +418,8 @@ get_volumes_list (GtkFileSystem *file_system)
g_object_unref (volume);
}
+
+ g_list_free (volumes);
}
else if (g_drive_is_media_removable (drive) && !g_drive_is_media_check_automatic (drive))
{