mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
validate: tools: Unref the pipeline before the runner and monitor
Avoids segfault in some cases, and monitors and runners have week ref on their targets.
This commit is contained in:
parent
0d6d397e30
commit
b51e143fdf
1 changed files with 2 additions and 2 deletions
|
@ -227,9 +227,9 @@ main (int argc, gchar ** argv)
|
|||
exit:
|
||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||
g_main_loop_unref (mainloop);
|
||||
g_object_unref (monitor);
|
||||
g_object_unref (runner);
|
||||
g_object_unref (pipeline);
|
||||
g_object_unref (runner);
|
||||
g_object_unref (monitor);
|
||||
#ifdef G_OS_UNIX
|
||||
g_source_remove (signal_watch_id);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue