summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-04 04:34:49 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-04 04:34:49 +0000
commit467443865407342d8ebd266c625612ad506ec60e (patch)
tree98364245867061f39907a46cea883e983522a339 /legacy
parente94ae8fe065cbca59536038d6d115027fc1882bb (diff)
do fcfini now - it seesm to not be a problem with fc anymore
SVN revision: 74870
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/lib/canvas/evas_font_dir.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_font_dir.c b/legacy/evas/src/lib/canvas/evas_font_dir.c
index 93f307bd48..2ada50668b 100644
--- a/legacy/evas/src/lib/canvas/evas_font_dir.c
+++ b/legacy/evas/src/lib/canvas/evas_font_dir.c
@@ -57,11 +57,12 @@ static int fc_init = 0;
57void 57void
58evas_font_dir_cache_free(void) 58evas_font_dir_cache_free(void)
59{ 59{
60 if (!font_dirs) return; 60 if (font_dirs)
61 61 {
62 eina_hash_foreach(font_dirs, font_cache_dir_free, NULL); 62 eina_hash_foreach(font_dirs, font_cache_dir_free, NULL);
63 eina_hash_free(font_dirs); 63 eina_hash_free(font_dirs);
64 font_dirs = NULL; 64 font_dirs = NULL;
65 }
65 66
66#ifdef HAVE_FONTCONFIG 67#ifdef HAVE_FONTCONFIG
67/* this is bad i got a: 68/* this is bad i got a:
@@ -71,9 +72,13 @@ evas_font_dir_cache_free(void)
71 * it as in reality - there is little reason to care about the memory not 72 * it as in reality - there is little reason to care about the memory not
72 * being freed etc. 73 * being freed etc.
73 * 74 *
74 * fc_init--; 75 * note 04/08/2012 - this doesnt seem to cause an issue anymore?
75 * if (fc_init == 0) FcFini();
76 */ 76 */
77 if (fc_init > 0)
78 {
79 fc_init--;
80 if (fc_init == 0) FcFini();
81 }
77#endif 82#endif
78} 83}
79 84