Skip to content
Snippets Groups Projects
Commit e42ec01d authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.FormEditor: Fix memory leak

parent 37e93319
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,10 @@ SelectionRectangle::SelectionRectangle(LayerItem *layerItem)
SelectionRectangle::~SelectionRectangle()
{
if (m_layerItem)
if (m_layerItem) {
m_layerItem->scene()->removeItem(m_controlShape);
delete m_controlShape;
}
}
void SelectionRectangle::clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment