diff options
| author | nyamatongwe <devnull@localhost> | 2007-11-23 03:13:29 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2007-11-23 03:13:29 +0000 |
| commit | 08f2d073c69ec8a5824d873ec402d4624a42de45 (patch) | |
| tree | 4a0b2c373523a1b26343ddf333f1cd366bfc32bc /win32 | |
| parent | a3a7753f0956d8f0cd1947dd38984e01939b97db (diff) | |
| download | scintilla-mirror-08f2d073c69ec8a5824d873ec402d4624a42de45.tar.gz | |
Ensure palette is not selected into any surfaces when it may need to be
released. Stops resource leaks in palette mode.
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index e8b142f6a..c818ab7fa 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -435,7 +435,7 @@ void SurfaceImpl::Release() { } bitmap = 0; if (paletteOld) { - // Fonts are not deleted as they are owned by a Palette object + // Palettes are not deleted as they are owned by a Palette object ::SelectPalette(reinterpret_cast<HDC>(hdc), reinterpret_cast<HPALETTE>(paletteOld), TRUE); paletteOld = 0; |
