element: NULL the lists of contexts in dispose()
authorMatthew Waters <matthew@centricular.com>
Fri, 27 Aug 2021 03:51:07 +0000 (13:51 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Aug 2021 05:40:55 +0000 (05:40 +0000)
commitc906ccb79fa86dfa9a635e2b14f8ee4754720add
treebef9d879d85f40289895ef9998161035b7e44037
parent148ac71a1fa8b698a8232b714f84419f51bda5ef
element: NULL the lists of contexts in dispose()

If dispose() is called more than once, we may double unref the list of
GstContext's.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/875>
gst/gstelement.c