summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fontcache.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index d3ba4f0b3..a9dbb2a65 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -281,9 +281,8 @@ err3:
err2:
SelectObject(dc, oldfont);
ReleaseDC(NULL, dc);
-err1:
DeleteObject(font);
-
+err1:
return ret_font_name == NULL ? WIDE_TO_MB((const TCHAR*)logfont->elfFullName) : ret_font_name;
}