mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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:
|
exit:
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
g_main_loop_unref (mainloop);
|
g_main_loop_unref (mainloop);
|
||||||
g_object_unref (monitor);
|
|
||||||
g_object_unref (runner);
|
|
||||||
g_object_unref (pipeline);
|
g_object_unref (pipeline);
|
||||||
|
g_object_unref (runner);
|
||||||
|
g_object_unref (monitor);
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
g_source_remove (signal_watch_id);
|
g_source_remove (signal_watch_id);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue