debugqroverlay: fix string leak
authorTim-Philipp Müller <tim@centricular.com>
Sun, 26 Mar 2023 15:49:32 +0000 (16:49 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 10 Apr 2023 13:42:55 +0000 (13:42 +0000)
commitd5957f89bf60b47a846bf86decaad9c2c3b60a01
treef87c6e118411a6b0d565dd80e5f102839dfef5f3
parent75a550a1b10872fcb5639784bf3ebea281eec7a8
debugqroverlay: fix string leak

g_string_free(.., FALSE) gives us ownership of the string
already, no need to duplicate that again with g_strdup(),
and doing so will leak the string returned by g_string_free()
here. Caught by compiler warnings in newer GLib versions.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4380>
subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c