[Bf-blender-cvs] [e6af8758c86] master: Ghost: Fix memory leak happening with keyboard mapping access
Sergey Sharybin
noreply at git.blender.org
Mon Jul 16 17:33:58 CEST 2018
Commit: e6af8758c86099790b003454195c4a748251c6a4
Author: Sergey Sharybin
Date: Mon Jul 16 17:32:57 2018 +0200
Branches: master
https://developer.blender.org/rBe6af8758c86099790b003454195c4a748251c6a4
Ghost: Fix memory leak happening with keyboard mapping access
So far only noticed system de-initialization doesn't perform full
object free. So rather harmless but yet stupid.
===================================================================
M intern/ghost/intern/GHOST_SystemX11.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index ac77fb3e196..3bace8fc35a 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -254,7 +254,7 @@ GHOST_SystemX11::
#endif /* WITH_X11_XINPUT */
if (m_xkb_descr) {
- XkbFreeNames(m_xkb_descr, XkbKeyNamesMask, false);
+ XkbFreeKeyboard (m_xkb_descr, XkbAllComponentsMask, true);
}
XCloseDisplay(m_display);
More information about the Bf-blender-cvs
mailing list