Hello,
I have tested testoverlay with valgrind and found the following problem:
…
==24596== Invalid free() / delete / delete[]
==24596== at 0x40044522: free (vg_clientfuncs.c:171)
==24596== by 0x40271914: X11_CreateYUVOverlay (SDL_x11yuv.c:142)
==24596== by 0x40267AE7: SDL_CreateYUVOverlay (SDL_yuv.c:61)
==24596== by 0x804972D: main (testoverlay.c:451)
==24596== Address 0x4317888C is 0 bytes inside a block of size 31 free’d
==24596== at 0x40044522: free (vg_clientfuncs.c:171)
==24596== by 0x402766A5: SDL_XvFreeAdaptorInfo (Xv.c:294)
==24596== by 0x402718EA: X11_CreateYUVOverlay (SDL_x11yuv.c:133)
==24596== by 0x40267AE7: SDL_CreateYUVOverlay (SDL_yuv.c:61)
…
Look in the sources I noticed that ainfo is freed a second time here:
src/video/x11/SDL_x11yuv.c:142
Bye,
Johns–
Become famous, earn no money, create music or graphics for FreeCraft RTS
http://FreeCraft.Org - FreeCraft a free real-time strategy game engine