[gs-cvs] rev 8214 - trunk/gs/src

leonardo at ghostscript.com leonardo at ghostscript.com
Wed Aug 29 02:36:30 PDT 2007


Author: leonardo
Date: 2007-08-29 02:36:29 -0700 (Wed, 29 Aug 2007)
New Revision: 8214

Modified:
   trunk/gs/src/gxttfb.c
Log:
Fix (TT font handler) : Place thr True Type interpreter and its data into stable memory (continued).

DETAILS :

Bug 688429 "Crash on vmreclaim".

The revision 8209 change is incorrect 
because it effectively frees a memory allocator instance.
Thanks to Henry for pointing this out.

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gxttfb.c
===================================================================
--- trunk/gs/src/gxttfb.c	2007-08-29 07:09:01 UTC (rev 8213)
+++ trunk/gs/src/gxttfb.c	2007-08-29 09:36:29 UTC (rev 8214)
@@ -402,8 +402,8 @@
     ttfInterpreter__release(&dir->tti);
     gx_san__release(&dir->san);
     if (dir->tti == NULL && dir->ttm != NULL) {
+	gs_free_object(dir->memory, dir->ttm, "ttfFont__destroy(gx_ttfMemory)");
 	dir->ttm = NULL;
-	gs_free_object(dir->memory, mem, "ttfFont__destroy(gx_ttfMemory)");
     }
 }
 



More information about the gs-cvs mailing list