libs: display: always call close_display()
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 11 Jun 2020 06:25:57 +0000 (08:25 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 31 Jul 2020 09:14:43 +0000 (11:14 +0200)
commit07aadb82fba079d0a3250607d9a41f9a43a84798
tree486bdd3a0c365f6a7ae9d22975f872f43caef25d
parent5902e5bfdbd800948962b19a229e7d1af258761f
libs: display: always call close_display()

All close_display() have their own checks for use_foreign_display and only
destroy locally created objects in that case.
Without this objects other than the actuall foreign display itself are
leaked.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/342>
gst-libs/gst/vaapi/gstvaapidisplay.c