summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-07 21:46:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-07 21:46:03 +0300
commitceb94030cb81b69a364e8492f7066ab898f74876 (patch)
tree6f4ee45dc838028e7fac8b9ae57abbb9dd93089e /src/net
parentbaff2d8d870fd89c5705959e13f31a1c7ca1be5d (diff)
downloadplus-ceb94030cb81b69a364e8492f7066ab898f74876.tar.gz
plus-ceb94030cb81b69a364e8492f7066ab898f74876.tar.bz2
plus-ceb94030cb81b69a364e8492f7066ab898f74876.tar.xz
plus-ceb94030cb81b69a364e8492f7066ab898f74876.zip
Fix possible threads structure leak in download.cpp
For some reason this leak cant be detected in SDL 1.2
Diffstat (limited to 'src/net')
-rw-r--r--src/net/download.cpp6
1 files changed, 3 insertions, 3 deletions
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)
{