* 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:
parent
7eb2d53b4c
commit
5a3eee3350
|
@ -474,6 +474,7 @@ KeyboardDevice::_ControlThread()
|
|||
fInputMethodStarted = true;
|
||||
|
||||
activeDeadKey = newDeadKey;
|
||||
delete[] string;
|
||||
}
|
||||
|
||||
if (msg != NULL && fOwner->EnqueueMessage(msg) != B_OK)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue