input/curl: remove duplicate InitEasy() call

This commit is contained in:
Max Kellermann 2016-12-19 14:38:50 +01:00
parent ccb45b6f6e
commit ceffc5aa72
2 changed files with 3 additions and 2 deletions

2
NEWS
View File

@ -7,6 +7,8 @@ ver 0.20 (not yet released)
- drop the "file:///" prefix for absolute file paths
- add range parameter to command "plchanges" and "plchangesposid"
- send verbose error message to client
* input
- curl: fix memory leak
* tags
- ape, ogg: drop support for non-standard tag "album artist"
affected filetypes: vorbis, flac, opus & all files with ape2 tags

View File

@ -65,7 +65,7 @@ struct CurlInputStream final : public AsyncInputStream {
struct curl_slist *request_headers;
/** the curl handles */
CURL *easy;
CURL *easy = nullptr;
/** error message provided by libcurl */
char error_buffer[CURL_ERROR_SIZE];
@ -79,7 +79,6 @@ struct CurlInputStream final : public AsyncInputStream {
CURL_RESUME_AT),
request_headers(nullptr),
icy(new IcyInputStream(this)) {
InitEasy();
}
~CurlInputStream();