Commit 66f7efca authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

Fix: exception at program closing time

parent 8c98bb64
......@@ -113,12 +113,12 @@ void UBKeyboardPalette::setInput(const UBKeyboardLocale* locale)
UBKeyboardPalette::~UBKeyboardPalette()
{
for (int i=0; i<47; i++)
delete buttons[i];
//for (int i=0; i<47; i++)
// delete buttons[i];
delete [] buttons;
for (int i=0; i<8; i++)
delete ctrlButtons[i];
//for (int i=0; i<8; i++)
// delete ctrlButtons[i];
delete [] ctrlButtons;
if (locales!=NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment