From 062f88a4f3c89603fe4bca8cc4e969ea4e9af3a3 Mon Sep 17 00:00:00 2001 From: "Suzuki, Toshiya (鈴木俊哉)" Date: Tue, 20 May 2008 07:57:53 +0000 Subject: * src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid aface is returned by FT_New_Face_From_FOND() --- src/base/ftmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/ftmac.c') diff --git a/src/base/ftmac.c b/src/base/ftmac.c index 5b265905..7f059076 100644 --- a/src/base/ftmac.c +++ b/src/base/ftmac.c @@ -899,7 +899,7 @@ typedef short ResourceIndex; } CloseResFile( res_ref ); - if ( FT_Err_Ok == error && NULL != aface ) + if ( FT_Err_Ok == error && NULL != aface && NULL != *aface ) (*aface)->num_faces = num_faces_in_res; return error; } -- cgit v1.2.3