From 7f2e4d8ace1b716d55b0fe868141770a32935ff4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 22 Jun 2016 23:42:56 +0200 Subject: [PATCH] Win32: Fix possible leak of dummy context --- src/wgl_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wgl_context.c b/src/wgl_context.c index 03732dd3..1f0ac8a1 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -383,6 +383,8 @@ static void loadWGLExtensions(void) if (!wglMakeCurrent(dc, rc)) { + wglDeleteContext(rc); + _glfwInputError(GLFW_PLATFORM_ERROR, "WGL: Failed to make context current for WGL extension loading"); return;