summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/addressbook-fr/part4
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2009-05-20 13:53:07 (GMT)
committerDaniel Molkentin <daniel.molkentin@nokia.com>2009-05-20 14:02:42 (GMT)
commitafa4bcc90f79f3a68bed3f3429f2515fc8c7d23d (patch)
tree215bcc40689989271c63fede757205ff43f25e9b /examples/tutorials/addressbook-fr/part4
parent4a756726ee874ff2ce496e1b113707c65c39a76b (diff)
downloadQt-afa4bcc90f79f3a68bed3f3429f2515fc8c7d23d.zip
Qt-afa4bcc90f79f3a68bed3f3429f2515fc8c7d23d.tar.gz
Qt-afa4bcc90f79f3a68bed3f3429f2515fc8c7d23d.tar.bz2
Changing the addressbook tutorial so it doesn't leak.
Reviewed-By: Kavindra Palaraja <kavindra.palaraja@nokia.com>
Diffstat (limited to 'examples/tutorials/addressbook-fr/part4')
-rw-r--r--examples/tutorials/addressbook-fr/part4/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorials/addressbook-fr/part4/main.cpp b/examples/tutorials/addressbook-fr/part4/main.cpp
index b25d656..46f6f03 100644
--- a/examples/tutorials/addressbook-fr/part4/main.cpp
+++ b/examples/tutorials/addressbook-fr/part4/main.cpp
@@ -46,8 +46,8 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- AddressBook *addressBook = new AddressBook;
- addressBook->show();
+ AddressBook addressBook;
+ addressBook.show();
return app.exec();
}