wpesrc: fix a memory leak of the bytes
authorMatthew Waters <matthew@centricular.com>
Wed, 7 Oct 2020 10:14:55 +0000 (21:14 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Oct 2020 08:48:05 +0000 (08:48 +0000)
commitda18a8d93d6d1ac7650835bd0855bf703429c4bd
treef63d7c243aceb32f94621759e4cc423982fe7193
parent356fee4dd6303794adf90c7ca14269ef52a0f072
wpesrc: fix a memory leak of the bytes

free the previous GBytes if load-bytes is called multiple times
before view creation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1663>
ext/wpe/gstwpesrc.cpp