Skip to content

Commit 6b97933

Browse files
authored
Merge pull request #112 from andersonpimentel/main
Bugfix on FileInfo disposal Previously `JsonFileInfo` objects were not correctly disposed when Notepad++ closed. This could potentially have caused failure of C# to dispose of unmanaged resources. As noted in my last comment on that PR, this change should not matter in normal usage because JsonFileInfos are disposed in response to NPPN_FILEBEFORECLOSE notifications, which fire for each file before NPPN_SHUTDOWN.
2 parents 431af77 + 19d02ab commit 6b97933

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

JsonToolsNppPlugin/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ static internal void PluginCleanUp()
463463
foreach (string key in keys)
464464
{
465465
JsonFileInfo info = jsonFileInfos[key];
466-
if (info == null || !info.IsDisposed)
466+
if (info == null || info.IsDisposed)
467467
continue;
468468
info.Dispose();
469469
jsonFileInfos.Remove(key);

JsonToolsNppPlugin/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
// Build Number
2929
// Revision
3030
//
31-
[assembly: AssemblyVersion("8.4.0.6")]
32-
[assembly: AssemblyFileVersion("8.4.0.6")]
31+
[assembly: AssemblyVersion("8.4.0.7")]
32+
[assembly: AssemblyFileVersion("8.4.0.7")]

0 commit comments

Comments
 (0)