* 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:
@@ -474,6 +474,7 @@ KeyboardDevice::_ControlThread()
|
|||||||
fInputMethodStarted = true;
|
fInputMethodStarted = true;
|
||||||
|
|
||||||
activeDeadKey = newDeadKey;
|
activeDeadKey = newDeadKey;
|
||||||
|
delete[] string;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg != NULL && fOwner->EnqueueMessage(msg) != B_OK)
|
if (msg != NULL && fOwner->EnqueueMessage(msg) != B_OK)
|
||||||
|
|||||||
@@ -167,10 +167,6 @@ keyboard_reader(void* arg)
|
|||||||
}
|
}
|
||||||
} else if (isKeyDown) {
|
} else if (isKeyDown) {
|
||||||
// start of a dead key
|
// start of a dead key
|
||||||
char* string = NULL;
|
|
||||||
int32 numBytes = 0;
|
|
||||||
keymap.GetChars(keycode, modifiers, 0, &string, &numBytes);
|
|
||||||
|
|
||||||
activeDeadKey = newDeadKey;
|
activeDeadKey = newDeadKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user