From: José Fonseca Date: Thu, 19 Feb 2009 12:58:00 +0000 (+0000) Subject: wgl: Call pipe_screen::destroy on exit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9c5e41688de0e2978cf2cc50fd6ba096302884d;p=mesa.git wgl: Call pipe_screen::destroy on exit. --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_device.c b/src/gallium/state_trackers/wgl/shared/stw_device.c index d85cb45084f..4d705b46825 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; }