[gtk+/gtk-2-16] Don't leak RequiresInfo when parsing GtkBuilder files



commit 11adc5a0d38b2355349fa14d84d06a066084566b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 18 14:52:04 2009 -0400

    Don't leak RequiresInfo when parsing GtkBuilder files
    
    This fixes bug 579366.
---
 gtk/gtkbuilderparser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index feda666..c5cb2d8 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -974,10 +974,11 @@ end_element (GMarkupParseContext *context,
 			 GTK_BUILDER_ERROR,
 			 GTK_BUILDER_ERROR_VERSION_MISMATCH,
 			 "%s: required %s version %d.%d, current version is %d.%d",
-			 data->filename, req_info->library, 
+			 data->filename, req_info->library,
 			 req_info->major, req_info->minor,
 			 GTK_MAJOR_VERSION, GTK_MINOR_VERSION);
 	}
+      _free_requires_info (req_info, NULL);
     }
   else if (strcmp (element_name, "interface") == 0)
     {



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