diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-08-12 12:05:47 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-08-15 11:22:56 +0200 |
commit | 0d4bd55042391d7cbbc9f21725aba02e50174d5b (patch) | |
tree | 1edf4b6df8d7c9ffefbd6bec8150e016b3537ba5 /client/x11/platform.cpp | |
parent | d7d0a3a98ef24a7be944c54c278f04c59a60974b (diff) | |
download | spice-0d4bd55042391d7cbbc9f21725aba02e50174d5b.tar.gz spice-0d4bd55042391d7cbbc9f21725aba02e50174d5b.tar.xz spice-0d4bd55042391d7cbbc9f21725aba02e50174d5b.zip |
fix 2 X11 related leaks
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r-- | client/x11/platform.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index fe98eae9..09ca61d0 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -2961,6 +2961,7 @@ static unsigned int get_modifier_mask(KeySym modifier) XModifierKeymap* map = XGetModifierMapping(x_display); KeyCode keycode = XKeysymToKeycode(x_display, modifier); if (keycode == NoSymbol) { + XFreeModifiermap(map); return 0; } |