Mesa (master): wgl: Call pipe_screen::destroy on exit.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Feb 19 13:29:08 UTC 2009
Module: Mesa
Branch: master
Commit: b9c5e41688de0e2978cf2cc50fd6ba096302884d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9c5e41688de0e2978cf2cc50fd6ba096302884d
Author: José Fonseca <jfonseca at vmware.com>
Date: Thu Feb 19 12:58:00 2009 +0000
wgl: Call pipe_screen::destroy on exit.
---
src/gallium/state_trackers/wgl/shared/stw_device.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/wgl/shared/stw_device.c b/src/gallium/state_trackers/wgl/shared/stw_device.c
index d85cb45..4d705b4 100644
--- a/src/gallium/state_trackers/wgl/shared/stw_device.c
+++ b/src/gallium/state_trackers/wgl/shared/stw_device.c
@@ -108,11 +108,11 @@ st_cleanup(void)
pipe_mutex_destroy( stw_dev->mutex );
- if(stw_dev) {
+ stw_dev->screen->destroy(stw_dev->screen);
+
#ifdef DEBUG
- debug_memory_end(stw_dev->memdbg_no);
+ debug_memory_end(stw_dev->memdbg_no);
#endif
- }
stw_dev = NULL;
}
More information about the mesa-commit
mailing list