gnome-utils r7907 - trunk/baobab/src



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]