Blame SOURCES/0037-Fix-backport-context-destruction-was-omitted.patch

b814f0
From eb422ab5e07498a7a8d086f6a942ee35ab3c9776 Mon Sep 17 00:00:00 2001
b814f0
From: Aleix Pol <aleixpol@kde.org>
b814f0
Date: Thu, 9 Dec 2021 17:35:24 +0100
b814f0
Subject: [PATCH 37/52] Fix backport, context destruction was omitted
b814f0
b814f0
When cherry-picking for 9df11e79b46c77d8c83f765b2a8e85b639fd55a2, this
b814f0
line got removed when rebasing the patch, which created a leak.
b814f0
b814f0
BUG: 442844
b814f0
Change-Id: Id00e8b194dcd910c5f01ce9d2cc318f96a4129a2
b814f0
---
b814f0
 src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 1 +
b814f0
 1 file changed, 1 insertion(+)
b814f0
b814f0
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
b814f0
index 95d1049c..683fe123 100644
b814f0
--- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
b814f0
+++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
b814f0
@@ -407,6 +407,7 @@ QWaylandGLContext::~QWaylandGLContext()
b814f0
 {
b814f0
     delete m_blitter;
b814f0
     m_blitter = nullptr;
b814f0
+    eglDestroyContext(m_eglDisplay, m_context);
b814f0
     if (m_decorationsContext != EGL_NO_CONTEXT)
b814f0
         eglDestroyContext(m_eglDisplay, m_decorationsContext);
b814f0
 }
b814f0
-- 
b814f0
2.35.1
b814f0