audioplayer: don't free curl_handle too early

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4a1cb03e82
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-04-07 17:57:58 +02:00
parent f57ea583f1
commit cc70fcc214

View File

@@ -1056,9 +1056,6 @@ void CAudioPlayerGui::processPlaylistUrl(const char *url, const char *name, cons
/* get it! */
curl_easy_perform(curl_handle);
/* cleanup curl stuff */
curl_easy_cleanup(curl_handle);
/*
* Now, our chunk.memory points to a memory block that is chunk.size
* bytes big and contains the remote file.
@@ -1099,6 +1096,9 @@ void CAudioPlayerGui::processPlaylistUrl(const char *url, const char *name, cons
}
}
/* cleanup curl stuff */
curl_easy_cleanup(curl_handle);
if (chunk.memory)
free(chunk.memory);