mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
vaapisink: don't leak GL texture.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
8866a7c223
commit
c432e82e44
1 changed files with 5 additions and 0 deletions
|
@ -231,6 +231,11 @@ gst_vaapisink_iface_init(GType type)
|
|||
static void
|
||||
gst_vaapisink_destroy(GstVaapiSink *sink)
|
||||
{
|
||||
if (sink->texture) {
|
||||
g_object_unref(sink->texture);
|
||||
sink->texture = NULL;
|
||||
}
|
||||
|
||||
if (sink->display) {
|
||||
g_object_unref(sink->display);
|
||||
sink->display = NULL;
|
||||
|
|
Loading…
Reference in a new issue