Explorar el Código

Used wrong delete

Thomas Buck hace 10 años
padre
commit
ecb9d6002d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/OpenRaider.cpp

+ 2
- 2
src/OpenRaider.cpp Ver fichero

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

Loading…
Cancelar
Guardar