changeset 492:dead6fb690c5

Fix adding a selection to a collection with no window open using the sort manager. Only one file was added, now all files in the selection are added (but duplicates). A pointer was not reset correctly.
author zas_
date Wed, 23 Apr 2008 09:56:21 +0000
parents 4a9570cd06f8
children e994613f4bad
files src/collect-io.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/collect-io.c	Tue Apr 22 23:53:24 2008 +0000
+++ b/src/collect-io.c	Wed Apr 23 09:56:21 2008 +0000
@@ -189,6 +189,7 @@
 			collection_add_check(cd, file_data_new_simple(buf), FALSE, TRUE);
 			changed = TRUE;
 			g_free(buf);
+			buf = NULL;
 			}
 		}