[gtk/fix-memleaks: 9/11] builder: Plug a small memory leak




commit 4cf69fbc5e6290ab4a6dd3029f96b584338d8938
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 27 18:40:12 2021 -0400

    builder: Plug a small memory leak
    
    We were forgetting to free expression info
    objects in one place.

 gtk/gtkbuilderparser.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index ba409bb22c..425c5afa4e 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -2007,6 +2007,7 @@ end_element (GtkBuildableParseContext  *context,
           PropertyInfo *prop_info = (PropertyInfo *) parent_info;
 
           prop_info->value = expression_info_construct (data->builder, expression_info, error);
+          free_expression_info (expression_info);
         }
       else if (parent_info->tag_type == TAG_EXPRESSION)
         {


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