]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug caused by fixing bug #437 .-)
authorNicolas Boichat <nicolas@boichat.ch>
Tue, 18 Oct 2005 12:12:34 +0000 (12:12 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Tue, 18 Oct 2005 12:12:34 +0000 (12:12 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2461 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/wxbmainframe.cpp
bacula/src/wx-console/wxbrestorepanel.cpp

index 733f8dd142545b05bdb016cd7d45dad94bca4ce1..f74beb67b2933d35a3d489103235abd29a1452db 100644 (file)
@@ -679,8 +679,8 @@ void wxbMainFrame::Print(wxString str, int status)
                   Send(wxString() << choices[res] << wxT("\n"));
                }
             }
-            delete choices;
-            delete numbers;
+            delete[] choices;
+            delete[] numbers;
          }
          else {
             Send(::wxGetTextFromUser(message,
index 2d57cff65b3e88e3bb94be05239b1d0e984e6bf9..68c9351d45b39ee7e1e07240f828007c34d46c3c 100644 (file)
@@ -765,8 +765,8 @@ void wxbRestorePanel::CmdStart() {
                   promptparser = wxbUtils::WaitForPrompt(wxString() << choices[res] << wxT("\n"), true);
                }
             }
-            delete choices;
-            delete numbers;
+            delete[] choices;
+            delete[] numbers;
          }
          else {
             delete promptparser;