Fixes memory leaks
This commit is contained in:
parent
35388de524
commit
25d72e14f9
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue