aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLFontContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/facade/SDLFontContext.cpp')
-rw-r--r--src/crepe/facade/SDLFontContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crepe/facade/SDLFontContext.cpp b/src/crepe/facade/SDLFontContext.cpp
index 4fb0e88..851016b 100644
--- a/src/crepe/facade/SDLFontContext.cpp
+++ b/src/crepe/facade/SDLFontContext.cpp
@@ -37,6 +37,7 @@ unique_ptr<Asset> SDLFontContext::get_font_asset(const string & font_family) {
FcPatternDestroy(pattern);
if (!matched_pattern) {
+ FcPatternDestroy(matched_pattern);
throw runtime_error("No matching font found.");
}