Skip to content

Commit

Permalink
TTF: reset library to NULL after destroying
Browse files Browse the repository at this point in the history
prevents a potential crash on exit
  • Loading branch information
bradallred committed Jun 9, 2013
1 parent d08c7d5 commit f0161c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gemrb/plugins/TTFImporter/TTFFontManager.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void destroyFT()
{ {
if (library) { if (library) {
FT_Done_FreeType( library ); FT_Done_FreeType( library );
library = NULL;
} }
} }


Expand Down

0 comments on commit f0161c0

Please sign in to comment.