diff src/collect-io.c @ 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 48c8e49b571c
children c7a2471e5c4e
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;
 			}
 		}