changeset 125:ee857b4ac902

Sun Dec 3 12:58:06 2006 John Ellis <johne@verizon.net> * view_dir_tree.c (vdtree_add_by_data): Plug memory leak, in fact the data returned by parts_list() was not used here at all.
author gqview
date Sun, 03 Dec 2006 18:00:46 +0000
parents 648881af5fb1
children 021a4d0de67b
files ChangeLog src/view_dir_tree.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Dec 03 01:55:07 2006 +0000
+++ b/ChangeLog	Sun Dec 03 18:00:46 2006 +0000
@@ -1,3 +1,8 @@
+Sun Dec  3 12:58:06 2006  John Ellis  <johne@verizon.net>
+
+	* view_dir_tree.c (vdtree_add_by_data): Plug memory leak, in fact
+	the data returned by parts_list() was not used here at all.
+
 Sat Dec  2 20:47:12 2006  John Ellis  <johne@verizon.net>
 
 	* README: Updates.
--- a/src/view_dir_tree.c	Sun Dec 03 01:55:07 2006 +0000
+++ b/src/view_dir_tree.c	Sun Dec 03 18:00:46 2006 +0000
@@ -976,7 +976,6 @@
 {
 	GtkTreeStore *store;
 	GtkTreeIter child;
-	GList *list;
 	NodeData *nd;
 	GdkPixbuf *pixbuf;
 	NodeData *end;
@@ -984,9 +983,6 @@
 
 	if (!fd) return;
 
-	list = parts_list(fd->path);
-	if (!list) return;
-
 	if (access_file(fd->path, R_OK | X_OK))
 		{
 		pixbuf = vdt->pf->close;