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/part1 | |
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/part1')
-rw-r--r-- | examples/tutorials/addressbook/part1/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorials/addressbook/part1/main.cpp b/examples/tutorials/addressbook/part1/main.cpp index 22bfd3e..9c96882 100644 --- a/examples/tutorials/addressbook/part1/main.cpp +++ b/examples/tutorials/addressbook/part1/main.cpp @@ -47,8 +47,8 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - AddressBook *addressBook = new AddressBook; - addressBook->show(); + AddressBook addressBook; + addressBook.show(); return app.exec(); } |