From: Adam Tkac Date: Wed, 21 Jul 2010 14:10:52 +0000 (+0000) Subject: [Bugfix] Fix memory leak in InputDevice::keyEvent function. X-Git-Tag: v1.0.90~201 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=214c1a17abb6b148e5156f497f26d267780ffde3;p=tigervnc.git [Bugfix] Fix memory leak in InputDevice::keyEvent function. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4112 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/unix/xserver/hw/vnc/Input.cc b/unix/xserver/hw/vnc/Input.cc index b94fc692..14d195b2 100644 --- a/unix/xserver/hw/vnc/Input.cc +++ b/unix/xserver/hw/vnc/Input.cc @@ -679,6 +679,8 @@ ModeSwitchFound: action = down ? KeyPress : KeyRelease; n = GetKeyboardEvents(eventq, keyboardDev, action, kc); enqueueEvents(keyboardDev, n); + + FREE_MAPS; /* * When faking a modifier we are putting a keycode (which can