From 9341889a3d2ab3428bfb08dae0887cf0aa8192bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9d=C3=A9e=20d=27Aboville?= Date: Thu, 30 Jan 2020 10:38:59 -0500 Subject: [PATCH] Close device at the end of the streaming example. Might leak a little memory on panic cases, but this is just an example. --- examples/streaming.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/streaming.rs b/examples/streaming.rs index ad4085e..385880e 100644 --- a/examples/streaming.rs +++ b/examples/streaming.rs @@ -117,5 +117,6 @@ fn main() { } // fflush(stdout); } -} + k4a_device_close(device); + } }