mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
examples: gtksvideooverlay: call gst::deinit()
Needed so we can use the leaks tracer.
This commit is contained in:
parent
c1c06868e9
commit
10573d882f
1 changed files with 10 additions and 3 deletions
|
@ -262,8 +262,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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue