diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-05-28 18:47:30 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-22 18:04:07 (GMT) |
commit | 4bd165d6849311b948ed87b9a51c7318ae6bd748 (patch) | |
tree | 0bf17fbe39e01a8bac06d2e94332495852f4a181 /examples/graphicsview | |
parent | a4f2082d34f5ef337ec5f280bd2a531eefb32e7f (diff) | |
download | Qt-4bd165d6849311b948ed87b9a51c7318ae6bd748.zip Qt-4bd165d6849311b948ed87b9a51c7318ae6bd748.tar.gz Qt-4bd165d6849311b948ed87b9a51c7318ae6bd748.tar.bz2 |
QGraphicsAnchorLayoutExample: Delete objects to avoid memory leaks
Delete objects from heap.
Diffstat (limited to 'examples/graphicsview')
-rw-r--r-- | examples/graphicsview/anchorlayout/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp index d7563be..1436aca 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" |