Fix: exception at program closing time

preferencesAboutTextFull
Anatoly Mihalchenko 14 years ago
parent 8c98bb64b8
commit 66f7efca3b
  1. 8
      src/gui/UBKeyboardPalette.cpp

@ -113,12 +113,12 @@ void UBKeyboardPalette::setInput(const UBKeyboardLocale* locale)
UBKeyboardPalette::~UBKeyboardPalette() UBKeyboardPalette::~UBKeyboardPalette()
{ {
for (int i=0; i<47; i++) //for (int i=0; i<47; i++)
delete buttons[i]; // delete buttons[i];
delete [] buttons; delete [] buttons;
for (int i=0; i<8; i++) //for (int i=0; i<8; i++)
delete ctrlButtons[i]; // delete ctrlButtons[i];
delete [] ctrlButtons; delete [] ctrlButtons;
if (locales!=NULL) if (locales!=NULL)

Loading…
Cancel
Save