From fb767602c08159daa2190129622ebf185606fd35 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Fri, 17 Jan 2014 16:57:29 +0100 Subject: wx: Delay memory cleanup until safe Previously we could do a cleanup while we where recursed down and thus delete the objects we where invoking. --- lib/wx/c_src/wxe_impl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/wx/c_src/wxe_impl.h') diff --git a/lib/wx/c_src/wxe_impl.h b/lib/wx/c_src/wxe_impl.h index 10ef0862ab..6beb0eb9b9 100644 --- a/lib/wx/c_src/wxe_impl.h +++ b/lib/wx/c_src/wxe_impl.h @@ -79,6 +79,9 @@ public: ptrMap ptr2ref; wxeMemEnv * global_me; + int recurse_level; + wxList * delayed_cleanup; + // Temp container for callbacks char *cb_buff; int cb_len; -- cgit v1.2.3