From 3e328409c2829dff590d0087518938851aff8bcc Mon Sep 17 00:00:00 2001 From: hash Date: Thu, 15 Aug 2002 19:46:43 +0000 Subject: think i fixed a memory leak problem... please test it out and see if the size of qpe increases if you load/unload keymaps --- (limited to 'inputmethods/multikey/keyboard.cpp') diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index b71f929..671868c 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -1017,6 +1017,16 @@ void Keys::setKey(const int row, const int qcode, const ushort unicode, keys[row].append(key); } + +// Keys::~Keys {{{2 +Keys::~Keys() { + + for (int i = 1; i <= 5; i++) + for (unsigned int j = 0; j < keys[i].count(); j++) + delete keys[i].at(j); + +} + // Keys:: other functions {{{2 int Keys::width(const int row, const int col) { -- cgit v0.9.0.2