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::*;