Fixes memory leaks
This commit is contained in:
@@ -78,8 +78,7 @@ namespace PkmnLibSharp.Library
|
||||
}
|
||||
}
|
||||
|
||||
private Forme(IntPtr parent)
|
||||
: base(parent)
|
||||
private Forme(IntPtr parent) : base(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace PkmnLibSharp
|
||||
public abstract class PointerWrapper : IDisposable
|
||||
{
|
||||
internal readonly IntPtr Ptr;
|
||||
private bool _isDeleted = true;
|
||||
private bool _isDeleted = false;
|
||||
|
||||
protected PointerWrapper(IntPtr ptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user