From: handa Date: Mon, 15 Mar 2004 13:00:27 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=92e967c53903a4dd98e0f6698890518a55dc61ae;p=m17n%2Fm17n-lib.git *** empty log message *** --- 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);