mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
h265decoder: Fix a memory leak because of slice header.
The gst_h265_slice_hdr_free() should free the slice header just parsed, not the priv->current_slice. Or, the memory leak will happen because we do not free the slices in priv->nalu list. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3671>
This commit is contained in:
parent
4d335eb667
commit
1eeea942de
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ gst_h265_decoder_parse_slice (GstH265Decoder * self, GstH265NalUnit * nalu)
|
||||||
* GstH265SliceHdr::entry_point_offset_minus1 but we don't use it
|
* GstH265SliceHdr::entry_point_offset_minus1 but we don't use it
|
||||||
* in this h265decoder baseclass at the moment
|
* in this h265decoder baseclass at the moment
|
||||||
*/
|
*/
|
||||||
gst_h265_slice_hdr_free (&priv->current_slice.header);
|
gst_h265_slice_hdr_free (&slice.header);
|
||||||
slice.nalu = *nalu;
|
slice.nalu = *nalu;
|
||||||
|
|
||||||
if (nalu->type >= GST_H265_NAL_SLICE_BLA_W_LP &&
|
if (nalu->type >= GST_H265_NAL_SLICE_BLA_W_LP &&
|
||||||
|
|
Loading…
Reference in a new issue