summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-07-21 14:10:52 +0000
committerAdam Tkac <atkac@redhat.com>2010-07-21 14:10:52 +0000
commit214c1a17abb6b148e5156f497f26d267780ffde3 (patch)
tree64ee9a4aef9cc24af5cb15f592c93619a172f55e /unix
parent39c9d99e5db1c1f520db278978f11a16f8a3454c (diff)
downloadtigervnc-214c1a17abb6b148e5156f497f26d267780ffde3.tar.gz
tigervnc-214c1a17abb6b148e5156f497f26d267780ffde3.zip
[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
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/Input.cc2
1 files changed, 2 insertions, 0 deletions
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