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:
Thibault Saunier 2014-01-13 09:41:16 +01:00
parent 0d6d397e30
commit b51e143fdf

View file

@ -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