mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
audioplayer: don't free curl_handle too early
This commit is contained in:
committed by
[CST] Focus
parent
f1740ac21b
commit
fcd65c2ce3
@@ -1055,9 +1055,6 @@ void CAudioPlayerGui::processPlaylistUrl(const char *url, const char *name, cons
|
|||||||
/* get it! */
|
/* get it! */
|
||||||
curl_easy_perform(curl_handle);
|
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
|
* Now, our chunk.memory points to a memory block that is chunk.size
|
||||||
* bytes big and contains the remote file.
|
* bytes big and contains the remote file.
|
||||||
@@ -1098,6 +1095,9 @@ void CAudioPlayerGui::processPlaylistUrl(const char *url, const char *name, cons
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* cleanup curl stuff */
|
||||||
|
curl_easy_cleanup(curl_handle);
|
||||||
|
|
||||||
if (chunk.memory)
|
if (chunk.memory)
|
||||||
free(chunk.memory);
|
free(chunk.memory);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user