[Commits] [SCM] claws branch, litehtml, updated. 3.17.3-105-g37178c5

miras at claws-mail.org miras at claws-mail.org
Wed Jan 30 00:29:26 CET 2019


The branch, litehtml has been updated
       via  37178c5d20f3a156904b51109295fcc868d09366 (commit)
      from  a8e68bf3fa3086fbed5a63b73a19601b2c8becbd (commit)

Summary of changes:
 src/plugins/litehtml_viewer/http.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 37178c5d20f3a156904b51109295fcc868d09366
Author: Michael Rasmussen <mir at datanom.net>
Date:   Wed Jan 30 00:29:12 2019 +0100

    Fix possible memory leak
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp
index ff9bcad..21e53fc 100644
--- 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list