shithub: freetype+ttf2subf

Download patch

ref: ebaeb6425e15638cfce1db80286dfac4c6987621
parent: a205b3ca85d2d78aac71ea3c1df104972031d6ad
author: Teijo Kinnunen <[email protected]>
date: Tue Aug 17 03:40:55 EDT 2010

Fix Savannah bug #30788.

* src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for
NULL too.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-17  Teijo Kinnunen <[email protected]>
+
+	Fix Savannah bug #30788.
+
+	* src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for
+	NULL too.
+
 2010-08-10  Werner Lemberg  <[email protected]>
 
 	Try to fix Savannah bug #30717 (and probably #30719 too).
--- a/src/cache/ftccache.c
+++ b/src/cache/ftccache.c
@@ -346,7 +346,7 @@
   static void
   FTC_Cache_Clear( FTC_Cache  cache )
   {
-    if ( cache )
+    if ( cache && cache->buckets )
     {
       FTC_Manager  manager = cache->manager;
       FT_UFast     i;