From ed39c71b2b6b47931f352ca07b49f631d6bf713a Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 7 Feb 2010 17:10:39 -0700 Subject: Cleanup some memory issues --- src/net/download.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net') 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) -- cgit v1.2.3-60-g2f50