Merge pull request #11784 from Tatsuya79/patch-4
qt: attempt to fix memory leak in shader panel
This commit is contained in:
commit
c01b2dea17
|
@ -166,7 +166,7 @@ void ShaderParamsDialog::clearLayout()
|
||||||
if (m_scrollArea)
|
if (m_scrollArea)
|
||||||
{
|
{
|
||||||
foreach (QObject *obj, children())
|
foreach (QObject *obj, children())
|
||||||
obj->deleteLater();
|
delete obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_layout = new QVBoxLayout();
|
m_layout = new QVBoxLayout();
|
||||||
|
|
Loading…
Reference in New Issue