diff options
author | Dan Gudmundsson <[email protected]> | 2014-05-22 13:46:53 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2014-06-16 12:10:48 +0200 |
commit | 190c04f50ab22e0227a0d5cfd67767db0b687c97 (patch) | |
tree | 0cbf50113363b927545d4d931961f3261893850f /lib/wx/c_src/wxe_memory.h | |
parent | b146f66ea96bacca6915f7e3b29ac7dcebd93119 (diff) | |
download | otp-190c04f50ab22e0227a0d5cfd67767db0b687c97.tar.gz otp-190c04f50ab22e0227a0d5cfd67767db0b687c97.tar.bz2 otp-190c04f50ab22e0227a0d5cfd67767db0b687c97.zip |
wx: Fix destroy bug
Do not postpone deletion of wx*DC objects since they need to be
deleted directly. Otherwise, if inside showModal, causes an eternal
loop of wxPaint events on Windows.
Diffstat (limited to 'lib/wx/c_src/wxe_memory.h')
-rw-r--r-- | lib/wx/c_src/wxe_memory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_memory.h b/lib/wx/c_src/wxe_memory.h index ec22183bfa..8a48c77154 100644 --- a/lib/wx/c_src/wxe_memory.h +++ b/lib/wx/c_src/wxe_memory.h @@ -47,7 +47,8 @@ class wxeRefData { int type; // 0 = wxWindow subclasses, 1 = wxObject subclasses // 2 = wxDialog subclasses, 3 = allocated wxObjects but not returned from new - // > 3 classes which lack virtual destr, or are supposed to be allocated on + // 4 = wxObjects that should always be deleted directly (wxDC derivates) + // > 4 classes which lack virtual destr, or are supposed to be allocated on // the stack bool alloc_in_erl; wxeMemEnv *memenv; |