Fixes memory leaks

This commit is contained in:
Deukhoofd committed 2020-05-02 20:30:33 +02:00
1 parent 35388de524
commit 25d72e14f9
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -78,8 +78,7 @@ namespace PkmnLibSharp.Library
} }
} }
private Forme(IntPtr parent) private Forme(IntPtr parent) : base(parent)
: base(parent)
{ {
} }
+1 -1
View File
@@ -5,7 +5,7 @@ namespace PkmnLibSharp
public abstract class PointerWrapper : IDisposable public abstract class PointerWrapper : IDisposable
{ {
internal readonly IntPtr Ptr; internal readonly IntPtr Ptr;
private bool _isDeleted = true; private bool _isDeleted = false;
protected PointerWrapper(IntPtr ptr) protected PointerWrapper(IntPtr ptr)
{ {