From 92e967c53903a4dd98e0f6698890518a55dc61ae Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 15 Mar 2004 13:00:27 +0000 Subject: [PATCH] *** empty log message *** --- example/medit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/example/medit.c b/example/medit.c index cacfbcf..7d7f93b 100644 --- a/example/medit.c +++ b/example/medit.c @@ -2585,7 +2585,7 @@ main (int argc, char **argv) for (i = 0; i < 11; i++) if (plist[i]) { - char *name = malloc (9); + char *name = alloca (9); sprintf (name, "Menu %c-%c", 'A' + i * 2, 'A' + i * 2 + 1); if (i == 10) @@ -2675,7 +2675,6 @@ main (int argc, char **argv) for (i = 0; i < num_input_methods; i++) minput_close_im (input_method_table[i]); m17n_object_unref (frame); - m17n_object_unref (mt); m17n_object_unref (face_xxx_large); m17n_object_unref (face_box); @@ -2693,7 +2692,13 @@ main (int argc, char **argv) M17N_FINI (); free (fontset_name); + free (filename); + free (input_method_table); + free (InputMethodMenus); + XFreeGC (display, mono_gc); + XFreeGC (display, mono_gc_inv); + XFreeGC (display, gc_inv); XtUninstallTranslations (form); XtUninstallTranslations (TextWidget); XtDestroyWidget (ShellWidget); -- 1.7.10.4