From 153cc70ddb52a2acc5a4790adc6d7a7b2ddf0d43 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 24 Nov 2008 11:10:58 -0700 Subject: windows: replace free() with _mesa_unreference_framebuffer() Fixes invalid memory reference bug when exiting. --- src/mesa/drivers/windows/gdi/wmesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 9dafb74723..1ddea33e35 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -60,7 +60,7 @@ wmesa_free_framebuffer(HDC hdc) FirstFramebuffer = pwfb->next; else prev->next = pwfb->next; - free(pwfb); + _mesa_unreference_framebuffer(&pwfb->Base); } } -- cgit v1.2.3