docs: fix memory leak of appsink example in manual

https://bugzilla.gnome.org/show_bug.cgi?id=721076
This commit is contained in:
Erik Andresen 2013-12-26 11:39:27 +01:00 committed by Tim-Philipp Müller
parent b03361ac38
commit 2cbab400b2

View 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");
}