summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7f9ec1ace..d28ba9b9d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2145,7 +2145,9 @@ int main(int argc, char *argv[])
*/
device->drop();
- delete font;
+#if USE_FREETYPE
+ font->drop();
+#endif
#endif // !SERVER