提交 02874bd4 编写于 作者: S serb

8179990: Cleaner palette entry handling

Reviewed-by: prr, mschoene, rhalade
上级 f3fa2832
/* /*
* Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -148,7 +148,7 @@ int AwtPalette::FetchPaletteEntries(HDC hDC, PALETTEENTRY* pPalEntries) ...@@ -148,7 +148,7 @@ int AwtPalette::FetchPaletteEntries(HDC hDC, PALETTEENTRY* pPalEntries)
pEntry->peFlags = PC_EXPLICIT; pEntry->peFlags = PC_EXPLICIT;
} }
hPal = ::CreatePalette(pLogPal); hPal = ::CreatePalette(pLogPal);
delete pLogPal; delete[] pLogPal;
if ( hPal == 0 ) { if ( hPal == 0 ) {
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册