advanced/pipeline-manipulation: Unref appsink after usage
authorSebastian Dröge <sebastian@centricular.com>
Fri, 16 Feb 2018 22:16:35 +0000 (00:16 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 16 Feb 2018 22:16:35 +0000 (00:16 +0200)
markdown/application-development/advanced/pipeline-manipulation.md

index 47bb00a..ecc5f1b 100644 (file)
@@ -881,6 +881,7 @@ main (int argc, char *argv[])
 
   /* cleanup and exit */
   gst_element_set_state (pipeline, GST_STATE_NULL);
+  gst_object_unref (sink);
   gst_object_unref (pipeline);
 
   exit (0);