Fix CLR objects not being set as ptr owner (#55)

Signed-off-by: Ayane Satomi <ayane@vignetteapp.org>
This commit is contained in:
Ayase Minori
2023-04-16 07:30:02 +08:00
committed by GitHub
parent 176415561c
commit baf3fbd8ea
17 changed files with 17 additions and 17 deletions

View File

@ -12,7 +12,7 @@ namespace Mediapipe.Net.Framework.Packets
{
public class DetectionVectorPacket : Packet<List<Detection>>
{
public DetectionVectorPacket() : base() { }
public DetectionVectorPacket() : base(true) { }
public DetectionVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }
public DetectionVectorPacket? At(Timestamp timestamp) => At<DetectionVectorPacket>(timestamp);