From cba9b973006b9f59046578a195ead1c23262a509 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 1 Jul 2014 17:18:08 +0200 Subject: [PATCH] decoder: h264: fix memory leak in PPS. Cope with latest changes from codecparsers/h264. It is now required to explicitly clear the GstH264PPS structure as it could contain additional allocations (slice_group_ids). --- gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index fe3f628..7caabfb 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -104,6 +104,9 @@ gst_vaapi_parser_info_h264_finalize(GstVaapiParserInfoH264 *pi) case GST_H264_NAL_SUBSET_SPS: gst_h264_sps_clear(&pi->data.sps); break; + case GST_H264_NAL_PPS: + gst_h264_pps_clear(&pi->data.pps); + break; case GST_H264_NAL_SEI: if (pi->data.sei) { g_array_unref(pi->data.sei); -- 2.7.4