From bee6f758888349df6c10f6a200a1c4f9d2fb7e72 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 11 May 2023 08:15:48 +0200 Subject: [PATCH] memory leak fixed --- src/controls/QskDrawer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controls/QskDrawer.cpp b/src/controls/QskDrawer.cpp index ec00c84e..905a5987 100644 --- a/src/controls/QskDrawer.cpp +++ b/src/controls/QskDrawer.cpp @@ -63,6 +63,9 @@ void QskDrawer::setEdge( Qt::Edge edge ) void QskDrawer::setContent( QskControl* content ) { content->setParentItem( m_data->contentBox ); + if ( content->parent() == nullptr ) + content->setParent( m_data->contentBox ); + m_data->content = content; }