[Commits] [SCM] claws branch, master, updated. 3.17.3-163-g969c422

ticho at claws-mail.org ticho at claws-mail.org
Thu Apr 25 23:17:07 CEST 2019


The branch, master has been updated
       via  969c422ede326adee17bf5009a0c55c687ef1f6f (commit)
      from  f544f20bb21e729c67b219e8d707177cbf96ff3e (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_viewer.c   |    9 +++------
 src/plugins/litehtml_viewer/lh_widget.cpp |    1 +
 2 files changed, 4 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 969c422ede326adee17bf5009a0c55c687ef1f6f
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Apr 25 23:16:53 2019 +0200

    Fix two memory leaks in litehtml plugin

diff --git a/src/plugins/litehtml_viewer/lh_viewer.c b/src/plugins/litehtml_viewer/lh_viewer.c
index cf22959..a567d2c 100644
--- a/src/plugins/litehtml_viewer/lh_viewer.c
+++ b/src/plugins/litehtml_viewer/lh_viewer.c
@@ -107,13 +107,10 @@ static void lh_clear_viewer(MimeViewer *_viewer)
 
 static void lh_destroy_viewer(MimeViewer *_viewer)
 {
-	debug_print("LH: destroy_viewer\n");
-
-	/* Just in case. */
-	lh_clear_viewer(_viewer);
+	LHViewer *viewer = (LHViewer *)_viewer;
 
-//	LHViewer *viewer = (LHViewer *)_viewer;
-//	lh_widget_destroy(viewer->widget);
+	debug_print("LH: destroy_viewer\n");
+	g_free(viewer);
 }
 
 static void lh_print_viewer (MimeViewer *_viewer)
diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index b02fa61..7f87b0d 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -121,6 +121,7 @@ lh_widget::~lh_widget()
 	g_object_unref(m_scrolled_window);
 	m_scrolled_window = NULL;
 	m_html = NULL;
+	g_free(m_font_name);
 }
 
 GtkWidget *lh_widget::get_widget() const

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list