From 51ec5928dcd976647784b2199bf60e3eec525379 Mon Sep 17 00:00:00 2001 From: Jules Youngberg Date: Sun, 12 Jun 2022 20:49:44 -0700 Subject: [PATCH] implement the drop trait for mediagraph --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ed4e702..3fac383 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -123,6 +123,14 @@ impl Mediagraph { } } +impl Drop for Mediagraph { + fn drop(&mut self) { + unsafe { + mediagraph_Mediagraph_Mediagraph_destructor(self.graph); + } + } +} + pub mod pose { //! Pose detection utilities. use super::*;