Merge pull request #3337 from Sonicadvance1/fix_wgl_leak
Fix minor memory leak in WGL interface.
This commit is contained in:
commit
2dca38cc6d
|
@ -73,9 +73,7 @@ bool cInterfaceWGL::Create(void *window_handle, bool core)
|
||||||
|
|
||||||
m_window_handle = window_handle_reified;
|
m_window_handle = window_handle_reified;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
dllHandle = LoadLibrary(TEXT("OpenGL32.dll"));
|
dllHandle = LoadLibrary(TEXT("OpenGL32.dll"));
|
||||||
#endif
|
|
||||||
|
|
||||||
PIXELFORMATDESCRIPTOR pfd = // pfd Tells Windows How We Want Things To Be
|
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.");
|
ERROR_LOG(VIDEO, "Attempt to release device context failed.");
|
||||||
hDC = nullptr;
|
hDC = nullptr;
|
||||||
}
|
}
|
||||||
|
FreeLibrary(dllHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue