[balsa: 2/4] files: Do not leak content_type
- From: Peter Bloomfield <peterb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [balsa: 2/4] files: Do not leak content_type
 
- Date: Sun,  6 Mar 2022 16:42:16 +0000 (UTC)
 
commit 3c6031f3b62af54954cebc5c500039411c2bd034
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Mar 6 11:38:44 2022 -0500
    files: Do not leak content_type
    
    in libbalsa_icon_finder().
 libbalsa/files.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libbalsa/files.c b/libbalsa/files.c
index 533eae4e1..92e853479 100644
--- a/libbalsa/files.c
+++ b/libbalsa/files.c
@@ -153,8 +153,10 @@ libbalsa_icon_finder(GtkWidget         * widget,
         pixbuf = libbalsa_default_attachment_pixbuf(width);
     }
 
-    if (used_type)
+    if (used_type) {
+        g_free(*used_type);
         *used_type = g_strdup(content_type);
+    }
 
     return pixbuf;
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]