Fix minor memory leak in WGL interface.

Would have a memory leak on game end
This commit is contained in:
Ryan Houdek 2015-12-13 11:42:18 -06:00
parent cc3dc05438
commit d9999bf30c
1 changed files with 1 additions and 2 deletions

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);
}