Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-07-16 18:32:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-07-16 18:32:57 +0300
commite6af8758c86099790b003454195c4a748251c6a4 (patch)
tree493f965975e1bf1a4100c7981eb56eb5d90045c9
parent1e1c858cf1bf900f0876b13f922beb0e2aeb0e8c (diff)
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.
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.cpp2
1 files changed, 1 insertions, 1 deletions
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);