diff system/file.cc @ 9:b6d6c0ffb423

Fixed some memory leaks
author thib
date Tue, 05 Aug 2008 13:24:20 +0000
parents fa8511a21d05
children 3a6aaeab7b4e
line wrap: on
line diff
--- a/system/file.cc
+++ b/system/file.cc
@@ -591,6 +591,7 @@ int FILESEARCH::InitRoot(char* root) {
 		dat_dir = root_dir;
 	} else {
 		dat_dir = new DIRFILE(dat_path);
+		delete[] dat_path;
 		dat_dir->Init();
 	}
 	searcher[ALL] = dat_dir;