comparison system/file.cc @ 9:b6d6c0ffb423

Fixed some memory leaks
author thib
date Tue, 05 Aug 2008 13:24:20 +0000
parents fa8511a21d05
children 3a6aaeab7b4e
comparison
equal deleted inserted replaced
8:55b577e5f5b5 9:b6d6c0ffb423
589 if (dat_path == 0) { 589 if (dat_path == 0) {
590 /* 見つからなかったら root を dat の代わりにつかう */ 590 /* 見つからなかったら root を dat の代わりにつかう */
591 dat_dir = root_dir; 591 dat_dir = root_dir;
592 } else { 592 } else {
593 dat_dir = new DIRFILE(dat_path); 593 dat_dir = new DIRFILE(dat_path);
594 delete[] dat_path;
594 dat_dir->Init(); 595 dat_dir->Init();
595 } 596 }
596 searcher[ALL] = dat_dir; 597 searcher[ALL] = dat_dir;
597 searcher[ROOT] = root_dir; 598 searcher[ROOT] = root_dir;
598 return 0; 599 return 0;