summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/gstvideoutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/video/gstvideoutils.c')
-rw-r--r--gst-libs/gst/video/gstvideoutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/video/gstvideoutils.c b/gst-libs/gst/video/gstvideoutils.c
index 7e543db35..03dffcd8f 100644
--- a/gst-libs/gst/video/gstvideoutils.c
+++ b/gst-libs/gst/video/gstvideoutils.c
@@ -171,6 +171,10 @@ _gst_video_codec_state_free (GstVideoCodecState * state)
gst_caps_unref (state->allocation_caps);
if (state->codec_data)
gst_buffer_unref (state->codec_data);
+ if (state->mastering_display_info)
+ g_slice_free (GstVideoMasteringDisplayInfo, state->mastering_display_info);
+ if (state->content_light_level)
+ g_slice_free (GstVideoContentLightLevel, state->content_light_level);
g_slice_free (GstVideoCodecState, state);
}