summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2008-11-17 13:01:41 +0000
committerJohn Peterson <jpeterson57@gmail.com>2008-11-17 13:01:41 +0000
commita88a644602b5451a07df6e19d9eea36b9fca18fc (patch)
tree50c2c10c8b756a9b248e87344400a95396586c78 /Source
parent39e44b0482c402e2ddbb30722875e29e4308f3df (diff)
Temporary solution to prevent hanging when closing emulator when render to main fram is used. It may be related to issue 1080.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1195 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Common/Src/DynamicLibrary.cpp2
-rw-r--r--Source/Core/Core/Src/Core.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.cpp b/Source/Core/Common/Src/DynamicLibrary.cpp
index 320b9a198e..b8fa470705 100644
--- a/Source/Core/Common/Src/DynamicLibrary.cpp
+++ b/Source/Core/Common/Src/DynamicLibrary.cpp
@@ -26,6 +26,7 @@
#include "Common.h"
#include "StringUtil.h"
#include "DynamicLibrary.h"
+#include "../../Core/Src/PowerPC/PowerPC.h"
DynamicLibrary::DynamicLibrary()
{
@@ -109,6 +110,7 @@ void DynamicLibrary::Unload()
}
#ifdef _WIN32
+ if( ! (library_file.find("OGL.") != std::string::npos) && !PowerPC::CPU_POWERDOWN)
FreeLibrary(library);
#else
dlclose(library);
diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp
index 27cf0e47ab..131beba498 100644
--- a/Source/Core/Core/Src/Core.cpp
+++ b/Source/Core/Core/Src/Core.cpp
@@ -189,7 +189,7 @@ void Stop() // - Hammertime!
PluginVideo::Video_Stop();
#endif
- delete g_pThread; //Wait for emuthread to close
+ //delete g_pThread; //Wait for emuthread to close
g_pThread = 0;
Core::StopTrace();
LogManager::Shutdown();