diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-24 11:10:58 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-24 11:12:41 -0700 |
commit | bd199522fdaed1f7b6c4db56c86e8a28e05d88e0 (patch) | |
tree | dbf3bfb484f1d21d03d95bfbb39cf92bbd9c6dcc | |
parent | 36c3e889d0cfbb040f7b860279987cd6ff5951f4 (diff) |
windows: replace free() with _mesa_unreference_framebuffer()
Fixes invalid memory reference bug when exiting.
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesa.c | 2 |
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); } } |