summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-12-07 15:34:45 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-12-07 15:34:45 (GMT)
commit44aa42960ad8e1df5499b515d23041bdffce6988 (patch)
tree1c63a95a2b0a1dffdb4b6960e38a2143aba2be16 /examples
parent20d65deb30d3286481402880ff6f646579b687c2 (diff)
downloadQt-44aa42960ad8e1df5499b515d23041bdffce6988.zip
Qt-44aa42960ad8e1df5499b515d23041bdffce6988.tar.gz
Qt-44aa42960ad8e1df5499b515d23041bdffce6988.tar.bz2
Fix memory leak
Merge-request: 391 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/webkit/fancybrowser/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
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]