Skip to content

Commit

Permalink
Stop releasing natlink objects on IDD_RELOAD
Browse files Browse the repository at this point in the history
This can cause inconsistent state in user/library code.
  • Loading branch information
drmfinlay committed Nov 2, 2024
1 parent 8c75ed1 commit 299ea3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NatlinkSource/DragonCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,8 +1230,10 @@ void CDragonCode::onMenuCommand( WPARAM wParam )
setTimerCallback( Py_None );
setTrayIcon( "", "", Py_None );

// release user Python-Natlink objects
releaseObjects();
// note: we do not release objects here any more because it
// may result in inconsistent state in user/library code
//releaseObjects();

break;

case IDD_EXIT:
Expand Down

0 comments on commit 299ea3f

Please sign in to comment.