From 36d95088dbb379740e89ff28a4eada157c68fd22 Mon Sep 17 00:00:00 2001 From: nagappan Date: Wed, 12 Oct 2005 13:59:51 +0000 Subject: 2005-10-12 Prashanth * Fixed crash, when dialog name is empty --- ChangeLog | 2 ++ appmap-gen.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3784c9d..09e961c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +2005-10-12 Prashanth + * Fixed crash, when dialog name is empty 2005-10-11 Nagappan A * Fixed SPI leaks in get_relation_name 2005-10-11 Premkumar J diff --git a/appmap-gen.c b/appmap-gen.c index ba583a0..e9e5671 100644 --- a/appmap-gen.c +++ b/appmap-gen.c @@ -753,6 +753,10 @@ void insert_context_header (FILE *fp, Accessible *accessible) name = g_strdup_printf ("%s%s", cur_obj_info->prefix, tmp_data); g_free (tmp_data); g_free (stripped_data); + g_free (label); + g_free (cur_obj_info->object_type); + g_free (cur_obj_info->prefix); + g_free (cur_obj_info); } else { @@ -770,12 +774,8 @@ void insert_context_header (FILE *fp, Accessible *accessible) size = strlen (object_record); fwrite (object_record, sizeof (char), size, fp); - g_free (label); g_free (name); g_free (object_record); - g_free (cur_obj_info->object_type); - g_free (cur_obj_info->prefix); - g_free (cur_obj_info); } void create_appmap (FILE *fp, Accessible *accessible, char *application_name) -- cgit v1.2.3