[gtk: 1/2] gtk/css: data_url_path fix leak in error path




commit 97d3363360370967de7da6df9804393e48324e5d
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date:   Fri Aug 12 01:33:39 2022 +0200

    gtk/css: data_url_path fix leak in error path
    
    Fixes 7900032f3067166502978413ed2447c68dc83771

 gtk/css/gtkcssdataurl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/css/gtkcssdataurl.c b/gtk/css/gtkcssdataurl.c
index cc430378f2..6b9afb4834 100644
--- a/gtk/css/gtkcssdataurl.c
+++ b/gtk/css/gtkcssdataurl.c
@@ -165,9 +165,10 @@ gtk_css_data_url_parse (const char  *url,
           g_propagate_error (error, local_error);
           g_free (charset);
           g_free (data);
-          return NULL; 
+          g_free (mimetype);
+          return NULL;
         }
-               
+
 
       bdata = data;
       bsize = written;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]