Fixed a memory leak in Scintilla injection

This commit is contained in:
Yaakov 2020-06-21 14:20:59 +10:00
parent 6b2d78a3c8
commit 181fec9e37
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>1.0.1</Version> <Version>1.0.3</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -138,7 +138,7 @@ namespace Notepad.Extensions.Logging
} }
finally finally
{ {
VirtualFreeEx(remoteProcess.Handle, IntPtr.Zero, IntPtr.Zero, MEM_RELEASE); VirtualFreeEx(remoteProcess.Handle, mem, IntPtr.Zero, MEM_RELEASE);
} }
} }
} }