diff options
Diffstat (limited to 'backends/networking/curl/networkreadstream.cpp')
-rw-r--r-- | backends/networking/curl/networkreadstream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/networking/curl/networkreadstream.cpp b/backends/networking/curl/networkreadstream.cpp index 8fd39d6884..0cf7118a8a 100644 --- a/backends/networking/curl/networkreadstream.cpp +++ b/backends/networking/curl/networkreadstream.cpp @@ -52,7 +52,8 @@ NetworkReadStream::NetworkReadStream(const char *url, curl_slist *headersList, C } NetworkReadStream::~NetworkReadStream() { - curl_easy_cleanup(_easy); + if (_easy) + curl_easy_cleanup(_easy); } bool NetworkReadStream::eos() const { |