diff options
author | Dan Gudmundsson <[email protected]> | 2018-11-16 09:35:36 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2018-11-16 11:34:40 +0100 |
commit | 2634c45c63dc6038ab9c738e9ab8ace490802f6d (patch) | |
tree | cde499a946a382087bbc579d25d36067729c5010 /lib/wx/c_src/wxe_impl.h | |
parent | db6059a9217767a6e42e93cec05089c0ec977d20 (diff) | |
download | otp-2634c45c63dc6038ab9c738e9ab8ace490802f6d.tar.gz otp-2634c45c63dc6038ab9c738e9ab8ace490802f6d.tar.bz2 otp-2634c45c63dc6038ab9c738e9ab8ace490802f6d.zip |
wx: Do not delay deletes of wxGraphicContext
Fixes crash on Mojave, where refresh events are sent early and
invoked recursively the delete of wxGraphicContext was delayed
until after callback returned causing the crash to happen.
Diffstat (limited to 'lib/wx/c_src/wxe_impl.h')
-rw-r--r-- | lib/wx/c_src/wxe_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_impl.h b/lib/wx/c_src/wxe_impl.h index 140a2bd36a..69cc81c429 100644 --- a/lib/wx/c_src/wxe_impl.h +++ b/lib/wx/c_src/wxe_impl.h @@ -84,7 +84,7 @@ public: wxeMemEnv * getMemEnv(ErlDrvTermData port); int newPtr(void * ptr, int type, wxeMemEnv *memenv); - int getRef(void * ptr, wxeMemEnv *memenv); + int getRef(void * ptr, wxeMemEnv *memenv, int type = 0); void * getPtr(char * bp, wxeMemEnv *memenv); void clearPtr(void *ptr); wxeRefData * getRefData(void *ptr); |