Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e42ec01d
Commit
e42ec01d
authored
Jan 27, 2011
by
Marco Bubke
Browse files
QmlDesigner.FormEditor: Fix memory leak
parent
37e93319
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/formeditor/selectionrectangle.cpp
View file @
e42ec01d
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment