diff --git a/examples/corelib/serialization/rsslisting/main.cpp b/examples/corelib/serialization/rsslisting/main.cpp index 9337e5f352..7e0089c468 100644 --- a/examples/corelib/serialization/rsslisting/main.cpp +++ b/examples/corelib/serialization/rsslisting/main.cpp @@ -20,7 +20,7 @@ Provides the main function for the RSS news reader example. int main(int argc, char **argv) { QApplication app(argc, argv); - RSSListing *rsslisting = new RSSListing; - rsslisting->show(); + RSSListing rsslisting; + rsslisting.show(); return app.exec(); }