summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/windows/gdi/wmesa.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-11-24 11:10:58 -0700
committerBrian Paul <[email protected]>2008-11-24 11:10:58 -0700
commit153cc70ddb52a2acc5a4790adc6d7a7b2ddf0d43 (patch)
tree686ba98d50cf4cab1a60324652ea75afd65d40f4 /src/mesa/drivers/windows/gdi/wmesa.c
parenta2037137385671c0673d1de6eb1c36dbd3cd78f3 (diff)
windows: replace free() with _mesa_unreference_framebuffer()
Fixes invalid memory reference bug when exiting.
Diffstat (limited to 'src/mesa/drivers/windows/gdi/wmesa.c')
-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 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);
}
}