Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a couple potential segfaults in MythDownloadManager.
In both GetLastModified() and download(QString,bool), we were deleting the MythDownloadInfo* even when downloadNow() failed. Whenever downloadNow() fails, it sets a flag to allow downloadFinished() to clean up as if the call was async instead of sync, so we only need to delete our MythDownloadInfo* if the download succeeded.
- Loading branch information
Showing
1 changed file
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters