summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/WGL.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-12-13 11:42:18 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2015-12-13 11:42:18 -0600
commitd9999bf30c032137f022e98a44ccc61b36424cfc (patch)
tree5768af147d81da1610b540603342c11ef775c66b /Source/Core/Common/GL/GLInterface/WGL.cpp
parentcc3dc05438b9324075c873cc42e72fd465b04990 (diff)
Fix minor memory leak in WGL interface.
Would have a memory leak on game end
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/WGL.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/WGL.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/GL/GLInterface/WGL.cpp b/Source/Core/Common/GL/GLInterface/WGL.cpp
index c6fa90ebd3..c0a1266804 100644
--- a/Source/Core/Common/GL/GLInterface/WGL.cpp
+++ b/Source/Core/Common/GL/GLInterface/WGL.cpp
@@ -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);
}