From 08f2d073c69ec8a5824d873ec402d4624a42de45 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 23 Nov 2007 03:13:29 +0000 Subject: Ensure palette is not selected into any surfaces when it may need to be released. Stops resource leaks in palette mode. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') 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), reinterpret_cast(paletteOld), TRUE); paletteOld = 0; -- cgit v1.2.3