summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-07 17:10:39 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-07 17:10:39 -0700
commited39c71b2b6b47931f352ca07b49f631d6bf713a (patch)
treeb66630214ae3b84aa5e8cb910c2801b2a610012b /src/net/download.cpp
parentdca3a657c821925b6a3d6776e7cdcb35608989fe (diff)
downloadmana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.gz
mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.bz2
mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.xz
mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.zip
Cleanup some memory issues
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index d722d9b7..d5903551 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -79,10 +79,12 @@ Download::Download(void *ptr, const std::string &url,
Download::~Download()
{
- delete mError;
-
if (mHeaders)
curl_slist_free_all(mHeaders);
+
+ int status;
+ SDL_WaitThread(mThread, &status);
+ free(mError);
}
void Download::addHeader(const std::string &header)