summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dynamic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp
index 609766c13..3df91e41f 100644
--- a/src/dynamic.cpp
+++ b/src/dynamic.cpp
@@ -69,6 +69,9 @@ DLLManager::~DLLManager()
Module* DLLManager::CallInit()
{
+ if (!lib)
+ return NULL;
+
const unsigned long* abi = GetSymbol<const unsigned long>(MODULE_STR_ABI);
if (!abi)
{