openjpegenc: fix memory leak from mstream

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1800>
This commit is contained in:
Stéphane Cerveau 2020-03-12 13:41:40 +01:00 committed by GStreamer Merge Bot
parent 7463e1090c
commit 4f6b609558

View file

@ -1027,7 +1027,7 @@ gst_openjpeg_enc_handle_frame (GstVideoEncoder * encoder,
gst_buffer_append_memory (frame->output_buffer,
gst_memory_new_wrapped (0, mstream.data, mstream.allocsize, 0,
mstream.size, NULL, (GDestroyNotify) g_free));
mstream.size, mstream.data, (GDestroyNotify) g_free));
GST_VIDEO_CODEC_FRAME_SET_SYNC_POINT (frame);
ret =