docs: fix memory leak of appsink example in manual
authorErik Andresen <erik@vontaene.de>
Thu, 26 Dec 2013 10:39:27 +0000 (11:39 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 26 Dec 2013 11:21:29 +0000 (11:21 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=721076

docs/manual/advanced-dataaccess.xml

index 7661191..82718d0 100644 (file)
@@ -1006,6 +1006,7 @@ main (int argc, char *argv[])
     gdk_pixbuf_save (pixbuf, "snapshot.png", "png", &error, NULL);
 #endif
     gst_buffer_unmap (buffer, &map);
+    gst_sample_unref (sample);
   } else {
     g_print ("could not make snapshot\n");
   }