[Commits] [SCM] claws branch, master, updated. 4.1.0-5-g2c16c66d8

mones at claws-mail.org mones at claws-mail.org
Sat May 7 16:41:49 UTC 2022


The branch, master has been updated
       via  2c16c66d8ff368cad8448e31407f2d04686e79af (commit)
      from  107cee427a9e56f6c79fc472a2959445f0673f77 (commit)

Summary of changes:
 src/plugins/litehtml_viewer/litehtml/html_tag.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 2c16c66d8ff368cad8448e31407f2d04686e79af
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat May 7 18:41:07 2022 +0200

    Fix CID 1498793: access the managed object of an empty smart pointer

diff --git a/src/plugins/litehtml_viewer/litehtml/html_tag.cpp b/src/plugins/litehtml_viewer/litehtml/html_tag.cpp
index f3a6b1b39..a992d68a2 100644
--- a/src/plugins/litehtml_viewer/litehtml/html_tag.cpp
+++ b/src/plugins/litehtml_viewer/litehtml/html_tag.cpp
@@ -4269,7 +4269,10 @@ int litehtml::html_tag::render_box(int x, int y, int max_width, bool second_pass
 	{
 		for (const auto& fb : m_floats_left)
 		{
-			fb.el->apply_relative_shift(fb.el->parent()->calc_width(m_pos.width));
+			if (fb.el)
+			{
+				fb.el->apply_relative_shift(fb.el->parent()->calc_width(m_pos.width));
+			}
 		}
 	}
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list