hlsdemux2: Don't leak the datetime in time map structs
authorJan Schmidt <jan@centricular.com>
Wed, 10 Aug 2022 19:07:10 +0000 (05:07 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 12 Aug 2022 13:52:59 +0000 (13:52 +0000)
commit9db19a3b06392854f28ecd187cd0f6cd660d1f53
treeeb0a7c57f545a78e32fa8c1f27de8783ab71b46e
parenta242428532e8a272ebae8ce1a0fe111cfda798f7
hlsdemux2: Don't leak the datetime in time map structs

Add a function to clean up GstHLSTimeMap structs
and free the ref on the optional associated GDateTime

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2873>
subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c