Skip to content

Commit

Permalink
plugin installer: destroy network replies (fixes #8233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 7, 2013
1 parent be65f73 commit a39b5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/pyplugin_installer/installer_data.py
Expand Up @@ -475,7 +475,7 @@ def xmlDownloaded(self):
if not self.fetchingInProgress():
self.checkingDone.emit()

del reply
reply.deleteLater()


# ----------------------------------------- #
Expand Down
Expand Up @@ -89,13 +89,13 @@ def requestFinished(self):
if reply.error() == QNetworkReply.OperationCanceledError:
self.mResult += "<br/><br/>" + QCoreApplication.translate("QgsPluginInstaller", "If you haven't cancelled the download manually, it might be caused by a timeout. In this case consider increasing the connection timeout value in QGIS options.")
self.reject()
del reply
reply.deleteLater()
return
self.file.open(QFile.WriteOnly)
self.file.write( reply.readAll() )
self.file.close()
self.stateChanged(0)
del reply
reply.deleteLater()
pluginDir = QFileInfo(QgsApplication.qgisUserDbFilePath()).path() + "/python/plugins"
tmpPath = self.file.fileName()
# make sure that the parent directory exists
Expand Down

0 comments on commit a39b5ab

Please sign in to comment.