SDL/src
Sam Lantinga 2dacb60bbb Fixed bug 2086 - valgrind memory not released
Sylvain

Someone provided a patch for this, recently on the mailing list :
-----

Hi,

it is possible to skip the bug in libX11 by using the defaults for
XNResourceName and XNResourceClass in `XCreateIC' (the table for the
"Input Context Values" [1] in libX11-doc shows that a default is
provided if it is not set).

diff -ur SDL2-2.0.3~/src/video/x11/SDL_x11window.c SDL2-2.0.3/src/video/x11/SDL_x11window.c
--- SDL2-2.0.3~/src/video/x11/SDL_x11window.c   2014-04-04 17:09:40.764307181 +0200
+++ SDL2-2.0.3/src/video/x11/SDL_x11window.c    2014-04-04 17:10:23.887765046 +0200
@@ -239,8 +239,7 @@
         data->ic =
             X11_XCreateIC(videodata->im, XNClientWindow, w, XNFocusWindow, w,
                        XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
-                       XNResourceName, videodata->classname, XNResourceClass,
-                       videodata->classname, NULL);
+                       NULL);
     }
 #endif
     data->created = created;


Tito Latini

[1] http://www.x.org/releases/X11R7.7-RC1/doc/libX11/libX11/libX11.html#Input_Context_Values
2014-04-17 20:06:02 -07:00
..
atomic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
audio Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
core Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
cpuinfo Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
dynapi Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
events Fixed bug 2503 - Loop indexing and event union errors in SDL_gesture.c 2014-04-17 19:52:15 -07:00
file Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
filesystem Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
haptic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
joystick Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
libm Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
loadso Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
main Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
power Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
render Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
stdlib Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
test Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
thread Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
timer Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
video Fixed bug 2086 - valgrind memory not released 2014-04-17 20:06:02 -07:00
SDL_assert_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_assert.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_hints.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_internal.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_log.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00