cvs: php4 /ext/gd/libgd gdft.c

From: Date: Wed, 30 Apr 2003 16:26:22 +0000
Subject: cvs: php4 /ext/gd/libgd gdft.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20612@lists.php.net to get a copy of this message
rasmus Wed Apr 30 12:26:22 2003 EDT Modified files: /php4/ext/gd/libgd gdft.c Log: MFB Index: php4/ext/gd/libgd/gdft.c diff -u php4/ext/gd/libgd/gdft.c:1.21 php4/ext/gd/libgd/gdft.c:1.22 --- php4/ext/gd/libgd/gdft.c:1.21 Sat Apr 5 12:23:55 2003 +++ php4/ext/gd/libgd/gdft.c Wed Apr 30 12:26:22 2003 @@ -744,7 +744,7 @@ /* Persistent font cache until explicitly cleared */ /* Fonts can be used across multiple images */ -static gdCache_head_t *fontCache; +static gdCache_head_t *fontCache = NULL; static FT_Library library; void @@ -753,6 +753,7 @@ if (fontCache) { gdCacheDelete(fontCache); + fontCache = NULL; FT_Done_FreeType(library); } }

« previous php.cvs (#20612) next »