summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 47eaf9284..36a0c6523 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -146,11 +146,11 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
} while ((FT_Long)++index != (*face)->num_faces);
-#if defined(UNICODE)
- free(font_path);
-#endif
folder_error:
registry_no_font_found:
+#if defined(UNICODE)
+ free(font_namep);
+#endif
RegCloseKey(hKey);
return err;
}