aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_impl.cpp
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-03-26 15:31:41 +0100
committerDan Gudmundsson <[email protected]>2014-03-26 15:31:41 +0100
commitc15c7c6b2117320aa5feb2c77781634d055cfcd7 (patch)
treea9bcaad022dffa79e9ecd9ad5c2fbb7fcb172478 /lib/wx/c_src/wxe_impl.cpp
parent3a51f434c6a79bbf7dca8b0fd96a5df7671b5792 (diff)
downloadotp-c15c7c6b2117320aa5feb2c77781634d055cfcd7.tar.gz
otp-c15c7c6b2117320aa5feb2c77781634d055cfcd7.tar.bz2
otp-c15c7c6b2117320aa5feb2c77781634d055cfcd7.zip
wx: Send destroy message direct
Messages was routed via the wxe_server process, which caused process to never get the message.
Diffstat (limited to 'lib/wx/c_src/wxe_impl.cpp')
-rw-r--r--lib/wx/c_src/wxe_impl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/wx/c_src/wxe_impl.cpp b/lib/wx/c_src/wxe_impl.cpp
index e3dc4862f2..f617aaf349 100644
--- a/lib/wx/c_src/wxe_impl.cpp
+++ b/lib/wx/c_src/wxe_impl.cpp
@@ -500,7 +500,6 @@ void WxeApp::destroyMemEnv(wxeMetaCommand& Ecmd)
if(it != ptr2ref.end()) {
wxeRefData *refd = it->second;
if(refd->alloc_in_erl) {
- int type = refd->type;
if((refd->type == 1) && ((wxObject *)ptr)->IsKindOf(CLASSINFO(wxBufferedDC))) {
((wxBufferedDC *)ptr)->m_dc = NULL; // Workaround
}
@@ -622,7 +621,7 @@ void WxeApp::clearPtr(void * ptr) {
if(((int) refd->pid) != -1) {
// Send terminate pid to owner
- wxeReturn rt = wxeReturn(WXE_DRV_PORT,refd->memenv->owner, false);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT,refd->pid, false);
rt.addAtom("_wxe_destroy_");
rt.add(ERL_DRV_PID, refd->pid);
rt.addTupleCount(2);