diff options
author | nyamatongwe <unknown> | 2001-08-10 10:20:46 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-10 10:20:46 +0000 |
commit | f095427c97c004909e86e510b7c2beca5b4830ce (patch) | |
tree | 3a7c643ea35a5412c05f0ed1940f42962c2a0b85 | |
parent | 1a7a66dd32c4d0a74ec78a7ff48b71ecbfb90f50 (diff) | |
download | scintilla-mirror-f095427c97c004909e86e510b7c2beca5b4830ce.tar.gz |
Fixed font resource leak caused by calltips.
-rw-r--r-- | win32/PlatWin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 31d8ed39a..a177f1def 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -236,9 +236,8 @@ Font::~Font() { #define FONTS_CACHED void Font::Create(const char *faceName, int characterSet, int size, bool bold, bool italic) { -#ifndef FONTS_CACHED Release(); - +#ifndef FONTS_CACHED LOGFONT lf; SetLogFont(lf, faceName, characterSet, size, bold, italic); id = ::CreateFontIndirect(&lf); |