From: handa Date: Wed, 2 Jun 2004 06:44:33 +0000 (+0000) Subject: (free_frame): Unref frame->font_driver_list. X-Git-Tag: withdl~128 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7b6df39ee4d172f5e16091943dc4ee830b2c33;p=m17n%2Fm17n-lib.git (free_frame): Unref frame->font_driver_list. (m17n_fini_win): Add check HAVE_FREETYPE in using null_interface. (mframe): Likewise. --- diff --git a/src/m17n-gui.c b/src/m17n-gui.c index 854098a..41e04dd 100644 --- a/src/m17n-gui.c +++ b/src/m17n-gui.c @@ -117,6 +117,7 @@ free_frame (void *object) (*frame->driver->close) (frame); M17N_OBJECT_UNREF (frame->face); free (frame->font); + M17N_OBJECT_UNREF (frame->font_driver_list); free (object); } @@ -319,8 +320,10 @@ m17n_fini_win (void) free (interface); } M17N_OBJECT_UNREF (device_library_list); +#ifdef HAVE_FREETYPE if (null_interface.handle) (*null_interface.fini) (); +#endif /* not HAVE_FREETYPE */ MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize input-gui module.")); minput__win_fini (); MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize draw module.")); @@ -565,12 +568,16 @@ mframe (MPlist *plist) if (device == Mnil) { +#ifdef HAVE_FREETYPE interface = &null_interface; if (! interface->handle) { (*interface->init) (); interface->handle = Mt; } +#else /* not HAVE_FREETYPE */ + MERROR (MERROR_WIN, NULL); +#endif /* not HAVE_FREETYPE */ } else {