Merge pull request #3337 from Sonicadvance1/fix_wgl_leak

Fix minor memory leak in WGL interface.
This commit is contained in:
Pierre Bourdon 2015-12-13 22:10:16 +01:00
commit 2dca38cc6d

View File

@ -73,9 +73,7 @@ bool cInterfaceWGL::Create(void *window_handle, bool core)
m_window_handle = window_handle_reified;
#ifdef _WIN32
dllHandle = LoadLibrary(TEXT("OpenGL32.dll"));
#endif
PIXELFORMATDESCRIPTOR pfd = // pfd Tells Windows How We Want Things To Be
{
@ -174,6 +172,7 @@ void cInterfaceWGL::Shutdown()
ERROR_LOG(VIDEO, "Attempt to release device context failed.");
hDC = nullptr;
}
FreeLibrary(dllHandle);
}