From 3c9c90ecf747e3df1fd51a3af00f395ce6a3e844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 28 Mar 2013 13:05:21 +0100 Subject: [PATCH] Text: assert that also freeing up FreeType resources doesn't fail. --- src/Text/FreeTypeFont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/FreeTypeFont.cpp b/src/Text/FreeTypeFont.cpp index c9d3e3f0a..f90a33fe4 100644 --- a/src/Text/FreeTypeFont.cpp +++ b/src/Text/FreeTypeFont.cpp @@ -57,7 +57,7 @@ FreeTypeFontRenderer::FreeTypeFontRenderer() { } FreeTypeFontRenderer::~FreeTypeFontRenderer() { - FT_Done_FreeType(_library); + CORRADE_INTERNAL_ASSERT_OUTPUT(FT_Done_FreeType(_library) == 0); } FreeTypeFont::FreeTypeFont(FreeTypeFontRenderer& renderer, const std::string& fontFile, Float size): _size(size) { @@ -174,7 +174,7 @@ void FreeTypeFont::prerenderDistanceField(const std::string& characters, const V } FreeTypeFont::~FreeTypeFont() { - FT_Done_Face(_ftFont); + CORRADE_INTERNAL_ASSERT_OUTPUT(FT_Done_Face(_ftFont) == 0); } const std::tuple& FreeTypeFont::operator[](char32_t character) const {