diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-16 15:35:17 (GMT) |
---|---|---|
committer | Liang Qi <liang.qi@nokia.com> | 2010-08-16 15:35:17 (GMT) |
commit | 34eb6cb58629c58b819d4c82b582106513da03bd (patch) | |
tree | 6281c6a197f8c38d1fd2471363243df79d64b47e /doc/src/examples/dbus-listnames.qdoc | |
parent | bc2a71b317724840c695b39f523ca510c28d15e5 (diff) | |
download | Qt-34eb6cb58629c58b819d4c82b582106513da03bd.zip Qt-34eb6cb58629c58b819d4c82b582106513da03bd.tar.gz Qt-34eb6cb58629c58b819d4c82b582106513da03bd.tar.bz2 |
diagramscene example: fix leak and crashes.
In MainWindow::deleteItem, if there is arrow selected, we need to clean
up the items from this arrow. We need to delete them first so there is no
arrow in the list anymore when we calls removeArrows (which before,
deleted arrow that were possibly in the list, resulting in crashes)
Also avoid leak by giving parents to objects that needs it, and destroying items.
Reviewed-by: Geir Vattekar
Task-number: QTBUG-12753
Merge-request: 775
Reviewed-by: Liang Qi <liang.qi@nokia.com>
Diffstat (limited to 'doc/src/examples/dbus-listnames.qdoc')
0 files changed, 0 insertions, 0 deletions