gnome-utils r7907 - trunk/baobab/src
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r7907 - trunk/baobab/src
- Date: Sat, 3 May 2008 11:04:16 +0100 (BST)
Author: pborelli
Date: Sat May 3 10:04:15 2008
New Revision: 7907
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=7907&view=rev
Log:
plug one more leak
Modified:
trunk/baobab/src/baobab-scan.c
Modified: trunk/baobab/src/baobab-scan.c
==============================================================================
--- trunk/baobab/src/baobab-scan.c (original)
+++ trunk/baobab/src/baobab-scan.c Sat May 3 10:04:15 2008
@@ -211,10 +211,6 @@
goto exit;
}
- /* is a symlink? */
- if (temp_type == G_FILE_TYPE_SYMBOLIC_LINK)
- continue;
-
/* is a directory? */
if (temp_type == G_FILE_TYPE_DIRECTORY) {
GFile *child_dir = g_file_get_child (file,
@@ -239,6 +235,7 @@
/* we already acconted for it */
tempHLsize += g_file_info_get_size (temp_info);
+ g_object_unref (temp_info);
continue;
}
}
@@ -252,6 +249,8 @@
elements++;
}
+ /* ignore other types (symlinks, sockets, devices, etc) */
+
g_object_unref (temp_info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]