From 4bd165d6849311b948ed87b9a51c7318ae6bd748 Mon Sep 17 00:00:00 2001 From: "Eduardo M. Fleury" Date: Thu, 28 May 2009 15:47:30 -0300 Subject: QGraphicsAnchorLayoutExample: Delete objects to avoid memory leaks Delete objects from heap. --- examples/graphicsview/anchorlayout/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" -- cgit v0.12