From 2e52c9e284aa86bf61a0e21392bd26938d4129b5 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Wed, 30 Dec 2020 01:11:17 +0100 Subject: [PATCH] qt: attempt to fix memory leak in shader panel --- ui/drivers/qt/shaderparamsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/drivers/qt/shaderparamsdialog.cpp b/ui/drivers/qt/shaderparamsdialog.cpp index a428938eb2cb..ba6e5174bdd6 100644 --- a/ui/drivers/qt/shaderparamsdialog.cpp +++ b/ui/drivers/qt/shaderparamsdialog.cpp @@ -166,7 +166,7 @@ void ShaderParamsDialog::clearLayout() if (m_scrollArea) { foreach (QObject *obj, children()) - obj->deleteLater(); + delete obj; } m_layout = new QVBoxLayout();