Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common
Modified Files:
evas_font_main.c
Log Message:
free the freetype handle after we're done with it.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_font_main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_font_main.c 6 Jun 2003 00:41:07 -0000 1.4
+++ evas_font_main.c 12 Jan 2004 18:12:40 -0000 1.5
@@ -1,17 +1,29 @@
#include "evas_common.h"
FT_Library ft_lib;
+static int initialised = 0;
void
evas_common_font_init(void)
{
- static int initialised = 0;
int error;
if (initialised) return;
error = FT_Init_FreeType(&ft_lib);
if (error) return;
initialised = 1;
+}
+
+void
+evas_common_font_shutdown(void)
+{
+ int error;
+
+ if (!initialised) return;
+
+ error = FT_Done_FreeType(ft_lib);
+ if (error) return;
+ initialised = 0;
}
int
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs