summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptengine.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-08-13 10:23:46 (GMT)
committerToby Tomkins <toby.tomkins@nokia.com>2010-08-18 12:21:14 (GMT)
commit81bb682e280dc282ba965051e232f81f64c1f3fe (patch)
tree801d912bd01440a8d2a614c0cfe9220976d583d0 /doc/src/snippets/code/src_script_qscriptengine.cpp
parent279c5eb3bd7c8bb836f2a3f8f5a0b1dc046dc24a (diff)
downloadQt-81bb682e280dc282ba965051e232f81f64c1f3fe.zip
Qt-81bb682e280dc282ba965051e232f81f64c1f3fe.tar.gz
Qt-81bb682e280dc282ba965051e232f81f64c1f3fe.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 (cherry picked from commit 5dedcd3c4cac993949295d109804a8f7cc3a5b0a)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengine.cpp')
0 files changed, 0 insertions, 0 deletions