Skip to content

Commit

Permalink
Implement Initializer in Assembler
Browse files Browse the repository at this point in the history
Performs automatic cleanup of unmanaged resources when any Assembler instance becomes Garbage Collected.
  • Loading branch information
Sewer56 committed Jan 5, 2019
1 parent ac40a4e commit d8a8873
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Source/Reloaded.Assembler/Assembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ public Assembler(int textSize = 0x10000, int resultSize = 0x8000)
_getVersionFunction = Marshal.GetDelegateForFunctionPointer<FasmDelegates.fasm_GetVersion>(getVersionAddress);
}


/// <summary>
/// Destroys this instance of the class.
/// </summary>
~Assembler()
{
Dispose();
}

/// <summary>
/// Retrieves the version of the internally used FASM assembler DLL.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Source/Reloaded.Assembler/Reloaded.Assembler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageIconUrl>https://avatars1.githubusercontent.com/u/45473408?s=400&amp;u=b591dd9f053703e87a08ccc56287a9119e9758cb&amp;v=4</PackageIconUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Reloaded-Project/Reloaded.Assembler</RepositoryUrl>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit d8a8873

Please sign in to comment.