examples: gtksink: call gst::deinit()

Needed so we can use the leaks tracer.
This commit is contained in:
Guillaume Desmottes 2021-05-22 17:36:31 +02:00
parent 87fb66f283
commit 4ae0168aea

View file

@ -151,8 +151,15 @@ fn main() {
gst::init().unwrap();
gtk::init().unwrap();
{
let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE);
app.connect_activate(create_ui);
app.run();
}
// Optional, can be used to detect leaks using the leaks tracer
unsafe {
gst::deinit();
}
}