Commit e42ec01d authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.FormEditor: Fix memory leak

parent 37e93319
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment