mesa/src/glx
Emil Velikov b0eada1707 glx: do not leak the dri2 extension information
The XExtensionInfo is allocated dynamically (if the pointer is NULL)
in the XEXT_GENERATE_FIND_DISPLAY macro. On the other hand the
macro XEXT_GENERATE_CLOSE_DISPLAY does not check/free the memory.

Follow the example set by dri1 and appledri, and use a static variable.

Spotted while hunting "still reachable" leaks in Waffle.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-02-18 11:02:25 +00:00
..
apple darwin: build fix 2015-02-10 20:35:10 -08:00
tests glx/tests: Add headers to distribution. 2014-12-12 12:11:49 -08:00
.gitignore Clean up .gitignore files 2013-01-10 22:01:31 +01:00
applegl_glx.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
clientattrib.c glx: Check malloc return value before accessing memory in glx/clientattrib.c 2013-12-03 14:35:41 -07:00
clientinfo.c glx: Add missing null check in __glX_send_client_info() 2014-02-07 08:14:05 -07:00
compsize.c Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does 2012-02-06 23:00:44 +00:00
create_context.c glx: Store the RENDER_TYPE in indirect rendering 2013-07-18 16:03:42 -07:00
dri2.c glx: do not leak the dri2 extension information 2015-02-18 11:02:25 +00:00
dri2.h glx: Fix build since 679c2ef "glx/drisw: add support for DRI2rendererQueryExtension", when only building drisw renderer 2014-08-21 16:59:48 +01:00
dri2_glx.c glx: Add an error message when a direct renderer's createScreen() routine fails 2014-06-18 09:55:45 +01:00
dri2_priv.h glx: Fix build since 679c2ef "glx/drisw: add support for DRI2rendererQueryExtension", when only building drisw renderer 2014-08-21 16:59:48 +01:00
dri3_glx.c glx/dri3: Don't fail on glXSwapBuffersMscOML(dpy, window, 0, 0, 0) (v2) 2014-12-14 15:09:49 +00:00
dri3_priv.h glx/dri3: Track separate (ust, msc) for PresentPixmap vs. PresentNotifyMsc (v2) 2014-12-14 15:09:49 +00:00
dri_common.c mesa: glx: Reduce error log level 2014-06-12 10:19:00 -06:00
dri_common.h mesa: remove support for GCC older than 3.3.0 2014-12-17 08:37:05 +11:00
dri_common_query_renderer.c glx: Fix build since 679c2ef "glx/drisw: add support for DRI2rendererQueryExtension", when only building drisw renderer 2014-08-21 16:59:48 +01:00
dri_glx.c include: move sarea.h next to it's only user 2014-08-21 21:47:37 +01:00
dri_sarea.h include: move sarea.h next to it's only user 2014-08-21 21:47:37 +01:00
drisw_glx.c glx/drisw: add support for DRI2rendererQueryExtension 2014-08-15 17:35:37 +01:00
drisw_priv.h glx/drisw: add support for DRI2rendererQueryExtension 2014-08-15 17:35:37 +01:00
eval.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
glx_error.c glx: Deliver an xlib style error to the application from an XCB error 2011-12-23 08:40:30 -08:00
glx_error.h glx: Deliver an xlib style error to the application from an XCB error 2011-12-23 08:40:30 -08:00
glx_pbuffer.c glx: Added missing null check in GetDrawableAttribute() 2014-06-26 15:37:14 +03:00
glx_query.c glx: Unifdef USE_XCB. 2012-10-09 14:32:02 -07:00
glxclient.h glx: remove __glXstrdup() 2014-12-16 13:50:53 +02:00
glxcmds.c glx: remove __glXstrdup() 2014-12-16 13:50:53 +02:00
glxconfig.c Don't cast the return value of malloc/realloc 2012-09-05 22:28:50 -07:00
glxconfig.h glx/dri: add initial dri interface for GLX_EXT_framebuffer_sRGB. 2011-03-06 20:06:42 +10:00
glxcurrent.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
glxext.c glxext: Send the Drawable's ID in the GLX_BufferSwapComplete event 2014-06-27 09:44:56 +10:00
glxextensions.c glx: Do not advertise buffer_age on dri2 2014-04-02 21:28:26 +01:00
glxextensions.h dri3: Add GLX_EXT_buffer_age support 2014-03-13 14:19:21 -07:00
glxhash.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
glxhash.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_glx.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
indirect_init.h glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
indirect_texture_compression.c mesa: Standardize names of OpenGL functions. 2012-11-12 10:53:57 -08:00
indirect_transpose_matrix.c mesa: Standardize names of OpenGL functions. 2012-11-12 10:53:57 -08:00
indirect_vertex_array.c glx: check memory allocations in __glXInitVertexArrayState() 2014-01-06 10:23:26 -07:00
indirect_vertex_array.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_vertex_array_priv.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_vertex_program.c mesa: Standardize names of OpenGL functions. 2012-11-12 10:53:57 -08:00
indirect_window_pos.c mesa: Standardize names of OpenGL functions. 2012-11-12 10:53:57 -08:00
Makefile.am mesa: Add scons files to distribution. 2014-12-12 12:11:50 -08:00
packrender.h glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
packsingle.h glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
pixel.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
pixelstore.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
query_renderer.c glx: change query_renderer_integer() value param to unsigned 2013-11-11 08:10:12 -07:00
render2.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
renderpix.c Don't cast the return value of malloc/realloc 2012-09-05 22:28:50 -07:00
SConscript SCons: Rename dri2_query_renderer.c to dri_common_query_renderer.c. 2014-08-21 12:22:18 -07:00
single2.c glx: move declarations before code 2013-06-27 07:48:18 -06:00
singlepix.c mesa: remove empty glthread.h file 2014-03-03 13:08:59 -07:00
vertarr.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
XF86dri.c s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
xf86dri.h s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
xf86dristr.h s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
xfont.c darwin: build fix 2015-02-10 22:22:33 -08:00