qt: attempt to fix memory leak in shader panel

This commit is contained in:
Tatsuya79 2020-12-30 01:11:17 +01:00 committed by GitHub
parent c4dc28319f
commit 2e52c9e284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ void ShaderParamsDialog::clearLayout()
if (m_scrollArea)
{
foreach (QObject *obj, children())
obj->deleteLater();
delete obj;
}
m_layout = new QVBoxLayout();