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

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