Fix Savannah bug #31040. * src/truetype/ttinterp.c (free_buffer_in_size): Remove. (TT_RunIns): Updated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
diff --git a/ChangeLog b/ChangeLog
index 3a754d6..0ab014d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-10-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #31040.
+
+ * src/truetype/ttinterp.c (free_buffer_in_size): Remove.
+ (TT_RunIns): Updated.
+
2010-09-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[sfnt] Make error message filling NULL names less verbose.
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index f1b7ac3..bf9189c 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -7361,38 +7361,6 @@
#endif /* !TT_CONFIG_OPTION_INTERPRETER_SWITCH */
- static void
- free_buffer_in_size( TT_ExecContext exc )
- {
- FT_Memory memory = exc->memory;
- TT_Size size = exc->size;
-
-
- if ( !size )
- return;
-
- if ( size->function_defs )
- FT_FREE( size->function_defs );
- if ( size->instruction_defs )
- FT_FREE( size->instruction_defs );
- if ( size->cvt )
- FT_FREE( size->cvt );
- if ( size->storage )
- FT_FREE( size->storage );
-
- if ( size->twilight.org )
- FT_FREE( size->twilight.org );
- if ( size->twilight.cur )
- FT_FREE( size->twilight.cur );
- if ( size->twilight.orus )
- FT_FREE( size->twilight.orus );
- if ( size->twilight.tags )
- FT_FREE( size->twilight.tags );
- if ( size->twilight.contours )
- FT_FREE( size->twilight.contours );
- }
-
-
/*************************************************************************/
/* */
/* RUN */
@@ -8165,10 +8133,7 @@
if ( CUR.error && !CUR.instruction_trap )
{
FT_TRACE1(( " The interpreter returned error 0x%x\n", CUR.error ));
- free_buffer_in_size( exc );
-
exc->size->cvt_ready = FALSE;
- exc->size->bytecode_ready = FALSE;
}
return CUR.error;