aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-11-23 03:13:29 +0000
committernyamatongwe <unknown>2007-11-23 03:13:29 +0000
commitb3f1aa0a28843dd106d1fc88cce7ffcf44c5f856 (patch)
tree4a0b2c373523a1b26343ddf333f1cd366bfc32bc /win32
parenta72ff058168403b9145beeb4e3e322a47f07895c (diff)
downloadscintilla-mirror-b3f1aa0a28843dd106d1fc88cce7ffcf44c5f856.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.cxx2
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;