From d16f089e88f63931d792cb4b2fca05747ed8c90a Mon Sep 17 00:00:00 2001 From: Jack Frost Date: Thu, 15 Aug 2013 13:52:31 +0200 Subject: [PATCH] properly clean up PerfQuery on OGL --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 6b2e92c93a..1eb986fe74 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -250,6 +250,8 @@ void VideoBackend::Video_Cleanup() { ProgramShaderCache::Shutdown(); VertexShaderManager::Shutdown(); PixelShaderManager::Shutdown(); + delete g_perf_query; + g_perf_query = NULL; delete g_vertex_manager; g_vertex_manager = NULL; OpcodeDecoder_Shutdown();