X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f837e5cc03ed4dd6f75d0357a1b252618cadf2b..f97d84a63b21fffcc830390e5bc3fe0eedb6e15b:/src/unix/threadpsx.cpp?ds=inline diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index c9915fa3b4..f0a19482a0 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -1260,7 +1260,8 @@ wxThreadError wxThread::Kill() #if !HAVE_THREAD_CLEANUP_FUNCTIONS ScheduleThreadForDeletion(); - OnExit(); + // don't call OnExit() here, it can only be called in the + // threads context and we're in the context of another thread DeleteThread(this); #endif // HAVE_THREAD_CLEANUP_FUNCTIONS