<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hey Pieter<div><br></div><div>At a first glance, your app looks fine to me, but here’s a couple of tips I use to hunt for leaks.</div><div><br></div><div>You may want to give the leaks tracer a try and see if there are any orphan gobjects left behind:</div><div><br></div><div><a href="https://gstreamer.freedesktop.org/documentation/coretracers/leaks.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/coretracers/leaks.html?gi-language=c</a></div><div><br></div><div>Note that you’ll need to add gst_deinit() to your code and that the tracer will only detect leaks by GStreamer objects not unreffed.</div><div><br></div><div>For a more generic leak check you may use Valgrind. Here’s a guide on how to use Valgrind with GStreamer applications:</div><div><br></div><div><a href="https://developer.ridgerun.com/wiki/index.php?title=How_to_Analyze_GStreamer_with_Valgrind">https://developer.ridgerun.com/wiki/index.php?title=How_to_Analyze_GStreamer_with_Valgrind</a><br><br><div dir="ltr">Michael</div><div id="AppleMailSignature" dir="ltr">www.ridgerun.com </div><div dir="ltr"><br><blockquote type="cite">On 20 Feb 2022, at 07:44, Pieter Hulshoff via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:<br><br></blockquote></div></div></body></html>