diff options
author | Dan Gudmundsson <[email protected]> | 2014-03-25 16:43:57 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2014-03-26 11:56:19 +0100 |
commit | 3a51f434c6a79bbf7dca8b0fd96a5df7671b5792 (patch) | |
tree | 9c68af076355d760240430fdaa9697f0bba3fef6 /lib/wx/c_src/wxe_impl.cpp | |
parent | 4486d61b3ea94875564337580cff66c0b7a79c5f (diff) | |
download | otp-3a51f434c6a79bbf7dca8b0fd96a5df7671b5792.tar.gz otp-3a51f434c6a79bbf7dca8b0fd96a5df7671b5792.tar.bz2 otp-3a51f434c6a79bbf7dca8b0fd96a5df7671b5792.zip |
wx: Add wxLocale class
Diffstat (limited to 'lib/wx/c_src/wxe_impl.cpp')
-rw-r--r-- | lib/wx/c_src/wxe_impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/wx/c_src/wxe_impl.cpp b/lib/wx/c_src/wxe_impl.cpp index eeccca1de7..e3dc4862f2 100644 --- a/lib/wx/c_src/wxe_impl.cpp +++ b/lib/wx/c_src/wxe_impl.cpp @@ -505,15 +505,16 @@ void WxeApp::destroyMemEnv(wxeMetaCommand& Ecmd) ((wxBufferedDC *)ptr)->m_dc = NULL; // Workaround } wxString msg; + bool cleanup_ref=true; if(refd->type == 0) { // Maybe also class 1 wxClassInfo *cinfo = ((wxObject *)ptr)->GetClassInfo(); msg.Printf(wxT("Memory leak: {wx_ref, %d, %s}"), refd->ref, cinfo->GetClassName()); send_msg("error", &msg); } else { - delete_object(ptr, refd); + cleanup_ref = delete_object(ptr, refd); } - if(type == 0 || type > 2) { + if(cleanup_ref) { // Delete refs for leaks and non overridden allocs delete refd; ptr2ref.erase(it); |