Browse Source
Updated file "NppIO.cpp" to deal with issue #3553 However both existing and updated code looks same, but it is not. command(IDM_VIEW_MONITORING); looks equal to buf->stopMonitoring(); checkMenuItem(IDM_VIEW_MONITORING, false); _toolBar.setCheck(IDM_VIEW_MONITORING, false); buf->setUserReadOnly(false); Updated code works on the current file being processed while existing code command(IDM_VIEW_MONITORING); works with current active buffer. Debugging for reported case can help to understand the above statement. Justification for updating file "NppCommands.cpp": See static HANDLE hThread gets a handle when monitoring is activated on a tab. This handle is overwritten if monitoring is activated on another tab. Resource leak happens here as previous handle can't be closed at all. However, this handle is not used anywhere in the code, then just why not to close the handle as soon thread is created. Closes #3554, fixes #3553pull/3552/merge
SinghRajenM
7 years ago
committed by
Don HO
2 changed files with 7 additions and 5 deletions
Loading…
Reference in new issue