Skip to content

Commit

Permalink
fix-> #7 LCUI退出时出现异常:memory corruption
Browse files Browse the repository at this point in the history
当指定的字体路径无效时,LCUI会free掉一次FT库,而在LCUI程序退出时,又会对FT库进行free,导致段错误,现已解决。
  • Loading branch information
lc-soft committed Mar 12, 2013
1 parent 82d8452 commit ebdf6fa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/font/fontlibrary.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ FontLIB_LoadFontFile( const char *filepath )
#ifdef LCUI_FONT_ENGINE_FREETYPE
error_code = FT_New_Face( library, filepath , 0 , &face );
if( error_code != 0 ) {
FT_Done_FreeType( library );
printf("%s: ", __FUNCTION__);
if ( error_code == FT_Err_Unknown_File_Format ) {
printf( "%s", FT_UNKNOWN_FILE_FORMAT );
Expand Down

0 comments on commit ebdf6fa

Please sign in to comment.