forked from mirrors/gstreamer-rs
examples: gtksink: call gst::deinit()
Needed so we can use the leaks tracer.
This commit is contained in:
parent
87fb66f283
commit
4ae0168aea
1 changed files with 10 additions and 3 deletions
|
@ -151,8 +151,15 @@ fn main() {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
gtk::init().unwrap();
|
gtk::init().unwrap();
|
||||||
|
|
||||||
|
{
|
||||||
let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE);
|
let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE);
|
||||||
|
|
||||||
app.connect_activate(create_ui);
|
app.connect_activate(create_ui);
|
||||||
app.run();
|
app.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Optional, can be used to detect leaks using the leaks tracer
|
||||||
|
unsafe {
|
||||||
|
gst::deinit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue