diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | appmap-gen.c | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,3 +1,5 @@ +2005-10-12 Prashanth <prashmohan@gmail.com> + * Fixed crash, when dialog name is empty 2005-10-11 Nagappan A <anagappan@novell.com> * Fixed SPI leaks in get_relation_name 2005-10-11 Premkumar J <jpremkumar@novell.com> 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) |