mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
docs: fix memory leak of appsink example in manual
https://bugzilla.gnome.org/show_bug.cgi?id=721076
This commit is contained in:
parent
b03361ac38
commit
2cbab400b2
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue