diff --git a/src/debug.cpp b/src/debug.cpp index b557ffd..5f92672 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -812,7 +812,10 @@ namespace bx void cleanup() { - m_symCleanup(kCurrentProcess); + if(NULL != m_symCleanup) + { + m_symCleanup(kCurrentProcess); + } m_symInitialize = NULL; m_symCleanup = NULL;