Commit 34398626 authored by Benjamin Otte's avatar Benjamin Otte

gtkmediafile: Don't leak all the images

We were leaking the GBytes for the image memory, which is a
noticeable memleak to anyone who's casually running a memory monitor.

Go KDE users!

Closes #1200
parent 93c54557
......@@ -131,6 +131,7 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self,
gtk_gst_memory_format_from_video (GST_VIDEO_FRAME_FORMAT (&frame)),
bytes,
frame.info.stride[0]);
g_bytes_unref (bytes);
gst_video_frame_unmap (&frame);
return texture;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment