[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-43-g20ea7dfc4

mones at claws-mail.org mones at claws-mail.org
Sat Feb 10 19:01:35 UTC 2024


The branch, gtk2 has been updated
       via  20ea7dfc4ab403142bf316e0e61c25a6997acdf4 (commit)
      from  4ccef54a7a91069592697d50f00233b471cf0b59 (commit)

Summary of changes:
 src/common/xml.c | 2 +-
 src/mimeview.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 20ea7dfc4ab403142bf316e0e61c25a6997acdf4
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Feb 10 20:00:52 2024 +0100

    Fix CIDs 1491064 and 1491074
    
    Two instances of 'Use after free (USE_AFTER_FREE)'

diff --git a/src/common/xml.c b/src/common/xml.c
index e9e6ec539..a104d387c 100644
--- a/src/common/xml.c
+++ b/src/common/xml.c
@@ -361,8 +361,8 @@ static void xml_pop_tag(XMLFile *file)
 
 	tag = (XMLTag *)file->tag_stack->data;
 
-	xml_free_tag(tag);
 	file->tag_stack = g_list_remove(file->tag_stack, tag);
+	xml_free_tag(tag);
 	file->level--;
 }
 
diff --git a/src/mimeview.c b/src/mimeview.c
index 8861cea05..fe9b1150d 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -589,8 +589,8 @@ void mimeview_destroy(MimeView *mimeview)
 	mimeview_free_mimeinfo(mimeview);
 	gtk_tree_path_free(mimeview->opened);
 	g_free(mimeview->file);
-	g_free(mimeview);
 	mimeviews = g_slist_remove(mimeviews, mimeview);
+	g_free(mimeview);
 }
 
 MimeInfo *mimeview_get_selected_part(MimeView *mimeview)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list