projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f37fa56
)
Fix possible memory leak
author
Michael Rasmussen
<mir@datanom.net>
Tue, 29 Jan 2019 23:29:12 +0000
(
00:29
+0100)
committer
Andrej Kacian
<ticho@claws-mail.org>
Tue, 12 Feb 2019 18:38:10 +0000
(19:38 +0100)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
src/plugins/litehtml_viewer/http.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/litehtml_viewer/http.cpp
b/src/plugins/litehtml_viewer/http.cpp
index ff9bcad62bf2b0b02da07fa7d7f4875d895a8be8..21e53fc868b174473965ce2499e57b749e016057 100644
(file)
--- 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);