From 129c32448fa36482c46ae9645e18a62722a04e53 Mon Sep 17 00:00:00 2001
From: SineStriker <trueful@163.com>
Date: 周三, 06 12月 2023 18:27:56 +0800
Subject: [PATCH] Revert "fix mem leak"

---
 src/core/contexts/abstractwindowcontext.cpp |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/core/contexts/abstractwindowcontext.cpp b/src/core/contexts/abstractwindowcontext.cpp
index 654f918..d0d6ebb 100644
--- a/src/core/contexts/abstractwindowcontext.cpp
+++ b/src/core/contexts/abstractwindowcontext.cpp
@@ -6,11 +6,7 @@
         : m_host(host), m_delegate(delegate), m_windowHandle(delegate->hostWindow(host)) {
     }
 
-    AbstractWindowContext::~AbstractWindowContext() {
-        if (m_delegate) {
-            delete m_delegate;
-        }
-    }
+    AbstractWindowContext::~AbstractWindowContext() = default;
 
     bool AbstractWindowContext::setHitTestVisible(const QObject *obj, bool visible) {
         Q_ASSERT(obj);

--
Gitblit v1.9.1