diff options
author | Daniel Molkentin <daniel.molkentin@nokia.com> | 2009-05-20 13:53:07 (GMT) |
---|---|---|
committer | Daniel Molkentin <daniel.molkentin@nokia.com> | 2009-05-20 14:02:42 (GMT) |
commit | afa4bcc90f79f3a68bed3f3429f2515fc8c7d23d (patch) | |
tree | 215bcc40689989271c63fede757205ff43f25e9b /examples/tutorials/addressbook/part5/main.cpp | |
parent | 4a756726ee874ff2ce496e1b113707c65c39a76b (diff) | |
download | Qt-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/part5/main.cpp')
-rw-r--r-- | examples/tutorials/addressbook/part5/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorials/addressbook/part5/main.cpp b/examples/tutorials/addressbook/part5/main.cpp index b25d656..46f6f03 100644 --- a/examples/tutorials/addressbook/part5/main.cpp +++ b/examples/tutorials/addressbook/part5/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(); } |