From 0ac77ef5c840103a80b4e8a7da6e76450ab9de46 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Wed, 25 Aug 1999 17:48:48 +0000 Subject: [PATCH] Fixed a bug in threadpsx.cpp (wxBaseArray bug). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/threadpsx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index 130ea38598..c3a6ff6268 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -858,7 +858,9 @@ void wxThreadModule::OnExit() for ( size_t n = 0u; n < count; n++ ) { - gs_allThreads[n]->Delete(); + // Delete calls the destructor which removes the current entry. We + // should only delete the first one each time. + gs_allThreads[0]->Delete(); } // destroy GUI mutex -- 2.50.0