From: Brian Paul Date: Mon, 24 Nov 2008 18:10:58 +0000 (-0700) Subject: windows: replace free() with _mesa_unreference_framebuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=153cc70ddb52a2acc5a4790adc6d7a7b2ddf0d43;p=mesa.git windows: replace free() with _mesa_unreference_framebuffer() Fixes invalid memory reference bug when exiting. --- diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 9dafb747231..1ddea33e35c 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); } }