X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad816ba53975de78ea29acdc40f05217137c8ad3..74698d3a22d5e611bbcd731a3ade616c66cfaca6:/src/mac/thread.cpp diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index 5ce510da31..5ea6f21f32 100644 --- a/src/mac/thread.cpp +++ b/src/mac/thread.cpp @@ -99,7 +99,7 @@ public: { if ( m_locked > 0 ) { - wxLogDebug(_T("Warning: freeing a locked mutex (%d locks)."), m_locked); + wxLogDebug(_T("Warning: freeing a locked mutex (%ld locks)."), m_locked); } } @@ -576,7 +576,10 @@ wxThread::wxThread(wxThreadKind kind) wxThread::~wxThread() { s_threads.Remove( (void*) this ) ; - delete m_internal; + if (m_internal != NULL) { + delete m_internal; + m_internal = NULL; + } } // create/start thread