From 214c1a17abb6b148e5156f497f26d267780ffde3 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 21 Jul 2010 14:10:52 +0000 Subject: [PATCH] [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 --- unix/xserver/hw/vnc/Input.cc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5