Permalink
Browse files

TTF: reset library to NULL after destroying

prevents a potential crash on exit
  • Loading branch information...
1 parent d08c7d5 commit f0161c045fbcf715a7238d6b9e97101df830f7fe @bradallred bradallred committed Jun 9, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 gemrb/plugins/TTFImporter/TTFFontManager.cpp
@@ -39,6 +39,7 @@ void destroyFT()
{
if (library) {
FT_Done_FreeType( library );
+ library = NULL;
}
}

0 comments on commit f0161c0

Please sign in to comment.