Fixed segmentation fault with de initialising ttf fonts