mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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;
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user