talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit cc1980bef322bfc7302e2a4bbf5c3ca9b7d8305f
parent f37fa56cf320f50c3694a97354e256f81780d1a0
Author: Michael Rasmussen <mir@datanom.net>
Date:   Wed, 30 Jan 2019 00:29:12 +0100

Fix possible memory leak

Signed-off-by: Michael Rasmussen <mir@datanom.net>

Diffstat:
Msrc/plugins/litehtml_viewer/http.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp @@ -70,11 +70,11 @@ GInputStream *http::load_url(const gchar *url, GError **error) } else { struct Data data; - data.memory = g_memory_input_stream_new(); - data.size = 0; - if (!curl) return NULL; + data.memory = g_memory_input_stream_new(); + data.size = 0; + curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&data); res = curl_easy_perform(curl);