Browse Source

Used wrong delete

Thomas Buck 10 years ago
parent
commit
ecb9d6002d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/OpenRaider.cpp

+ 2
- 2
src/OpenRaider.cpp View File

674
             do {
674
             do {
675
                 menuMapListMove('f', false);
675
                 menuMapListMove('f', false);
676
             } while (strstr(mMapList.current(), dirName) != NULL);
676
             } while (strstr(mMapList.current(), dirName) != NULL);
677
-            delete dirName;
677
+            delete []dirName;
678
         } else {
678
         } else {
679
             do {
679
             do {
680
                 menuMapListMove('f', false);
680
                 menuMapListMove('f', false);
695
                 menuMapListMove('b', false);
695
                 menuMapListMove('b', false);
696
             } while (strstr(mMapList.current(), dirName) != NULL);
696
             } while (strstr(mMapList.current(), dirName) != NULL);
697
             menuMapListMove('f', false);
697
             menuMapListMove('f', false);
698
-            delete dirName;
698
+            delete []dirName;
699
         } else {
699
         } else {
700
             do {
700
             do {
701
                 menuMapListMove('b', false);
701
                 menuMapListMove('b', false);

Loading…
Cancel
Save