From 24d55a1145d52d221c7aa7066e033ca34e3ddef5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 9 Aug 2005 14:23:28 +0000 Subject: free context structure (bug 1252316) and s/free/_mesa_free/ --- src/mesa/drivers/windows/gdi/wmesa.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index d32822e65de..00cd37550d0 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -1004,7 +1004,7 @@ WMesaContext WMesaCreateContext(HWND hWnd, 1); if (!c->gl_visual) { - free(c); + _mesa_free(c); return NULL; } @@ -1028,7 +1028,7 @@ WMesaContext WMesaCreateContext(HWND hWnd, &functions, (void *)c); if (!c->gl_ctx) { _mesa_destroy_visual( c->gl_visual ); - free(c); + _mesa_free(c); return NULL; } @@ -1042,7 +1042,7 @@ WMesaContext WMesaCreateContext(HWND hWnd, if (!c->gl_buffer) { _mesa_destroy_visual(c->gl_visual); _mesa_free_context_data(c->gl_ctx); - free(c); + _mesa_free(c); return NULL; } @@ -1052,7 +1052,7 @@ WMesaContext WMesaCreateContext(HWND hWnd, _mesa_destroy_visual(c->gl_visual); _mesa_destroy_framebuffer(c->gl_buffer); _mesa_free_context_data(c->gl_ctx); - free(c); + _mesa_free(c); return NULL; } @@ -1116,7 +1116,7 @@ WMesaContext WMesaCreateContext(HWND hWnd, _mesa_destroy_visual(c->gl_visual); _mesa_destroy_framebuffer(c->gl_buffer); _mesa_free_context_data(c->gl_ctx); - free(c); + _mesa_free(c); return NULL; } @@ -1148,7 +1148,8 @@ void WMesaDestroyContext( void ) _mesa_destroy_visual(c->gl_visual); _mesa_destroy_framebuffer(c->gl_buffer); _mesa_free_context_data(c->gl_ctx); - free(c); + _mesa_free(c->gl_ctx); + _mesa_free(c); } -- cgit v1.2.3