Skip to content

Commit

Permalink
chg: Code refactor - Fix Windows freezing !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgamboa committed Feb 4, 2024
1 parent c9b3a86 commit 8ae981d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ PACKAGE=picsimlab
MAINVER=0
MINORVER=9
VERSION=0.9.1
DATE=240201
DATE=240204
VERSION_STABLE=0.9.1
2 changes: 1 addition & 1 deletion src/picsimlab1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2148,8 +2148,8 @@ int CPWindow1::OnExtraWindowCmd(const int id, const char* ControlName, const PIC
case PWA_WINDOWDESTROY:
((CPWindow*)ctrl)->Hide();
((CPWindow*)ctrl)->DestroyChilds();
((CPWindow*)ctrl)->SetCanDestroy(true);
((CPWindow*)ctrl)->WDestroy();
delete ctrl;
ctrl = NULL;
break;
case PWA_WINDOWLOADXML:
Expand Down
2 changes: 1 addition & 1 deletion src/picsimlab5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,8 @@ int CPWindow5::OnExtraWindowCmd(const int id, const char* ControlName, const PIC
case PWA_WINDOWDESTROY:
((CPWindow*)ctrl)->Hide();
((CPWindow*)ctrl)->DestroyChilds();
((CPWindow*)ctrl)->SetCanDestroy(true);
((CPWindow*)ctrl)->WDestroy();
delete ctrl;
ctrl = NULL;
break;
case PWA_WINDOWLOADXML:
Expand Down

0 comments on commit 8ae981d

Please sign in to comment.