From ceb94030cb81b69a364e8492f7066ab898f74876 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Sep 2017 21:46:03 +0300 Subject: Fix possible threads structure leak in download.cpp For some reason this leak cant be detected in SDL 1.2 --- src/net/download.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/net/download.cpp b/src/net/download.cpp index 54aa8b217..af3e3eff6 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -280,7 +280,7 @@ int Download::downloadThread(void *ptr) if ((d->mOptions.cancel != 0u) || isTerminate == true) { // need terminate thread? - d->mThread = nullptr; + //d->mThread = nullptr; return 0; } d->mCurl = curl_easy_init(); @@ -478,7 +478,7 @@ int Download::downloadThread(void *ptr) if ((d->mOptions.cancel != 0u) || isTerminate == true) { // need ternibate thread? - d->mThread = nullptr; + //d->mThread = nullptr; return 0; } attempts++; @@ -488,7 +488,7 @@ int Download::downloadThread(void *ptr) break; } - d->mThread = nullptr; + //d->mThread = nullptr; if ((d->mOptions.cancel != 0u) || isTerminate == true) { -- cgit v1.2.3-70-g09d2