summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/anchorlayout
diff options
context:
space:
mode:
authorEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-05-28 15:47:30 -0300
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-22 15:04:07 -0300
commit4bd165d6849311b948ed87b9a51c7318ae6bd748 (patch)
tree0bf17fbe39e01a8bac06d2e94332495852f4a181 /examples/graphicsview/anchorlayout
parenta4f2082d34f5ef337ec5f280bd2a531eefb32e7f (diff)
QGraphicsAnchorLayoutExample: Delete objects to avoid memory leaks
Delete objects from heap.
Diffstat (limited to 'examples/graphicsview/anchorlayout')
-rw-r--r--examples/graphicsview/anchorlayout/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp
index d7563beb67..1436acae2e 100644
--- a/examples/graphicsview/anchorlayout/main.cpp
+++ b/examples/graphicsview/anchorlayout/main.cpp
@@ -138,7 +138,12 @@ int main(int argc, char **argv)
test.connect(&timer, SIGNAL(timeout()), SLOT(onTimer()));
timer.start(5000);
- return app.exec();
+ int rc = app.exec();
+
+ delete scene;
+ delete view;
+
+ return rc;
}
#include "main.moc"