examples: fix element leak in volume example

This commit is contained in:
Vincent Penquerc'h 2017-05-11 11:12:52 +01:00
parent fc3a07c6a6
commit f37bae7b88

View file

@ -186,6 +186,7 @@ main (int argc, char *argv[])
g_timeout_add (100, progress_update, pipeline);
gtk_main ();
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (volume);
gst_object_unref (pipeline);
gst_object_unref (bus);