xvimagesink: Don't leak temporary
authorJan Schmidt <jan@centricular.com>
Fri, 30 Sep 2022 18:47:31 +0000 (04:47 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 3 Oct 2022 17:30:51 +0000 (17:30 +0000)
commitc8cf714d371eac31ce444632510c0686ce6b17a5
tree8945259432ac789fd95a6d5a03d80307970be3b3
parentaae7b5416c8a6e873467368ea0dc70a89dc3c9d0
xvimagesink: Don't leak temporary

Use a stack variable instead of a temporarily
malloced variable that wasn't being freed
properly. Fixes a small leak of a GstXvTouchDevice

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3100>
subprojects/gst-plugins-base/sys/xvimage/xvcontext.c