examples: fix element leak in volume example
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 11 May 2017 10:12:52 +0000 (11:12 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 11 May 2017 10:12:52 +0000 (11:12 +0100)
tests/examples/audio/volume.c

index 398bc4f7b9b12a8f0787c91c3994e5c936a8aa28..a3ca3d758439c6a4d6543f157d9366b8a2828a0b 100644 (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);