From 44aa42960ad8e1df5499b515d23041bdffce6988 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 7 Dec 2009 16:34:45 +0100 Subject: Fix memory leak Merge-request: 391 Reviewed-by: Eskil Abrahamsen Blomfeldt --- examples/webkit/fancybrowser/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/webkit/fancybrowser/mainwindow.cpp b/examples/webkit/fancybrowser/mainwindow.cpp index cfc5500..6b3f983 100644 --- a/examples/webkit/fancybrowser/mainwindow.cpp +++ b/examples/webkit/fancybrowser/mainwindow.cpp @@ -120,6 +120,7 @@ void MainWindow::slotSourceDownloaded() textEdit->setAttribute(Qt::WA_DeleteOnClose); textEdit->show(); textEdit->setPlainText(reply->readAll()); + reply->deleteLater(); } //! [4] -- cgit v0.12