summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-08-09 14:23:28 +0000
committerBrian Paul <[email protected]>2005-08-09 14:23:28 +0000
commit24d55a1145d52d221c7aa7066e033ca34e3ddef5 (patch)
treef0e079fbf3201c6884c26ac66febe9a06b5149e8 /src/mesa
parentaba4864a25fbf056b4c34dd20cc000b7e3221ad3 (diff)
free context structure (bug 1252316) and s/free/_mesa_free/
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/windows/gdi/wmesa.c13
1 files changed, 7 insertions, 6 deletions
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);
}