Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgud committed Jun 23, 2021
2 parents 8dc814f + c89a3c9 commit 807966e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/wx/c_src/wxe_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,11 @@ void * newMemEnv(ErlNifEnv* env, wxe_me_ref *mr)
void WxeApp::destroyMemEnv(wxeMetaCommand &Ecmd)
{
// Clear incoming cmd queue first
// dispatch_cmds();
dispatch_cmds();
enif_mutex_lock(wxe_batch_locker_m);
wxe_needs_wakeup = 1;
enif_mutex_unlock(wxe_batch_locker_m);

wxWindow *parent = NULL;

if(!Ecmd.me_ref || !Ecmd.me_ref->memenv) {
Expand Down

0 comments on commit 807966e

Please sign in to comment.