[Commits] [SCM] claws branch, litehtml, updated. 3.17.0-177-gebeafcd

miras at claws-mail.org miras at claws-mail.org
Thu Nov 15 23:12:16 CET 2018


The branch, litehtml has been updated
       via  ebeafcdc76f44cb141afeb488d193b60a82c4124 (commit)
       via  bd831618f022fedcd22354f27a6c2c9af2876755 (commit)
       via  3f9c9472db3614a96be839f622a585d729ae6bcd (commit)
       via  a2fe3fd40f7c275ff7dc67a581d6361dcbee730a (commit)
       via  9e6d0bb29a56a918878c89c10d7be9d779904779 (commit)
      from  43824215231eed9e63a569094906528fcce8b3f3 (commit)

Summary of changes:
 src/gtk/gtkshruler.c                 |    2 ++
 src/inc.c                            |    5 ++++-
 src/main.c                           |    5 +++--
 src/plugins/litehtml_viewer/http.cpp |    4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit ebeafcdc76f44cb141afeb488d193b60a82c4124
Author: Michael Rasmussen <mir at datanom.net>
Date:   Thu Nov 15 23:12:11 2018 +0100

    Fix 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 e6547eb..68af736 100644
--- a/src/plugins/litehtml_viewer/http.cpp
+++ b/src/plugins/litehtml_viewer/http.cpp
@@ -80,8 +80,10 @@ GInputStream *http::load_url(const gchar *url, GError **error)
 	if (res != CURLE_OK) {
 	    _error = g_error_new_literal(G_FILE_ERROR, res, curl_easy_strerror(res));
 	} else {
-	    stream = g_memory_input_stream_new_from_data(g_memdup(data.memory, data.size), data.size, http::destroy_giostream);
+	    void *bytes = g_memdup(data.memory, data.size);
 	    g_free(data.memory);
+	    stream = g_memory_input_stream_new_from_data(bytes, data.size, http::destroy_giostream);
+	    g_free(bytes);
 	}
     }
 

commit bd831618f022fedcd22354f27a6c2c9af2876755
Merge: 3f9c947 4382421
Author: Michael Rasmussen <mir at datanom.net>
Date:   Thu Nov 15 23:07:29 2018 +0100

    Merge branch 'litehtml' of ssh+git://git.claws-mail.org/home/git/claws into litehtml


commit 3f9c9472db3614a96be839f622a585d729ae6bcd
Merge: 9b84a6b a2fe3fd
Author: Michael Rasmussen <mir at datanom.net>
Date:   Tue Nov 13 17:40:07 2018 +0100

    Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws into litehtml


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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list