From 6bb4843a22228b82f300b0dd48c1529483950b8c Mon Sep 17 00:00:00 2001 From: dwillis Date: Sun, 24 Aug 2014 21:30:49 +0100 Subject: [PATCH] OP-1453 - remember to schedule QNetworkReply for deletion once we're done with the network response. --- ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp b/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp index d3fae6237..c5a36f148 100644 --- a/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp +++ b/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp @@ -155,6 +155,8 @@ void WelcomeMode::networkResponseReady(QNetworkReply* reply) QString version(reply->readAll()); QString trimmedVersion = version.trimmed(); + reply->deleteLater(); + if(trimmedVersion != VersionInfo::tagOrHash8()) { m_newVersionText = tr("(Update Available: %1) ").arg(trimmedVersion);