]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Fix memory leak in InputDevice::keyEvent function.
authorAdam Tkac <atkac@redhat.com>
Wed, 21 Jul 2010 14:10:52 +0000 (14:10 +0000)
committerAdam Tkac <atkac@redhat.com>
Wed, 21 Jul 2010 14:10:52 +0000 (14:10 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4112 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/xserver/hw/vnc/Input.cc

index b94fc6924c8049e6affe88e728e7ce89f996fec9..14d195b2efeeae0df80d40f3a3c111b76141a43f 100644 (file)
@@ -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