From 530276ec6a0cca92a4d08d676de6336c8dffa0e7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Dec 2015 17:31:24 +0100 Subject: [PATCH] Fix crash in graphics benchmark Set the GL context pointer deleted in the frame dtor to NULL to ensure we don't crash on exit when not using OpenGL. --- tests/benchmarks/graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/benchmarks/graphics.cpp b/tests/benchmarks/graphics.cpp index fd4a471808..cfcfe2a4bf 100644 --- a/tests/benchmarks/graphics.cpp +++ b/tests/benchmarks/graphics.cpp @@ -103,6 +103,7 @@ public: #if wxUSE_GLCANVAS m_glCanvas = NULL; + m_glContext = NULL; if ( opts.useGL ) {