From: Nicolas Boichat Date: Tue, 18 Oct 2005 12:12:34 +0000 (+0000) Subject: Fix bug caused by fixing bug #437 .-) X-Git-Tag: Release-1.38.0~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b972734550971e6a816df4224bec90df41c196c9;p=bacula%2Fbacula Fix bug caused by fixing bug #437 .-) git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2461 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/wx-console/wxbmainframe.cpp b/bacula/src/wx-console/wxbmainframe.cpp index 733f8dd142..f74beb67b2 100644 --- a/bacula/src/wx-console/wxbmainframe.cpp +++ b/bacula/src/wx-console/wxbmainframe.cpp @@ -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, diff --git a/bacula/src/wx-console/wxbrestorepanel.cpp b/bacula/src/wx-console/wxbrestorepanel.cpp index 2d57cff65b..68c9351d45 100644 --- a/bacula/src/wx-console/wxbrestorepanel.cpp +++ b/bacula/src/wx-console/wxbrestorepanel.cpp @@ -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;