summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/windows/gdi
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-24 11:10:58 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-11-24 11:10:58 -0700
commit153cc70ddb52a2acc5a4790adc6d7a7b2ddf0d43 (patch)
tree686ba98d50cf4cab1a60324652ea75afd65d40f4 /src/mesa/drivers/windows/gdi
parenta2037137385671c0673d1de6eb1c36dbd3cd78f3 (diff)
windows: replace free() with _mesa_unreference_framebuffer()
Fixes invalid memory reference bug when exiting.
Diffstat (limited to 'src/mesa/drivers/windows/gdi')
-rw-r--r--src/mesa/drivers/windows/gdi/wmesa.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}