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

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