decoder: h264: fix memory leak in PPS.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 1 Jul 2014 15:18:08 +0000 (17:18 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 1 Jul 2014 15:18:08 +0000 (17:18 +0200)
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

index fe3f628..7caabfb 100644 (file)
@@ -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);