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
parent
5861d416ea
commit
194376d6d7
Loading…
Reference in new issue