* Keyboard input device addon: fix deadkey string leak.

* consoled: CID 1696, the found deadkey string is unused.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39811 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2010-12-10 20:38:22 +00:00
parent 7eb2d53b4c
commit 5a3eee3350
2 changed files with 1 additions and 4 deletions

View File

@ -474,6 +474,7 @@ KeyboardDevice::_ControlThread()
fInputMethodStarted = true;
activeDeadKey = newDeadKey;
delete[] string;
}
if (msg != NULL && fOwner->EnqueueMessage(msg) != B_OK)

View File

@ -167,10 +167,6 @@ keyboard_reader(void* arg)
}
} else if (isKeyDown) {
// start of a dead key
char* string = NULL;
int32 numBytes = 0;
keymap.GetChars(keycode, modifiers, 0, &string, &numBytes);
activeDeadKey = newDeadKey;
}
}