mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gdkpixbufsink: don't leak old pixel buffer when setting a new overlay
https://bugzilla.gnome.org/show_bug.cgi?id=755773
This commit is contained in:
parent
6c09710292
commit
d77891406d
1 changed files with 3 additions and 0 deletions
|
@ -462,6 +462,9 @@ gst_gdk_pixbuf_overlay_set_pixbuf (GstGdkPixbufOverlay * overlay,
|
|||
}
|
||||
}
|
||||
|
||||
if (overlay->pixels)
|
||||
gst_buffer_unref (overlay->pixels);
|
||||
|
||||
/* assume we have row padding even for the last row */
|
||||
/* transfer ownership of pixbuf to the buffer */
|
||||
overlay->pixels = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY,
|
||||
|
|
Loading…
Reference in a new issue