8179990: Cleaner palette entry handling
Reviewed-by: prr, mschoene, rhalade
This commit is contained in:
parent
e9b19f1484
commit
e646802457
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -148,7 +148,7 @@ int AwtPalette::FetchPaletteEntries(HDC hDC, PALETTEENTRY* pPalEntries)
|
||||
pEntry->peFlags = PC_EXPLICIT;
|
||||
}
|
||||
hPal = ::CreatePalette(pLogPal);
|
||||
delete pLogPal;
|
||||
delete[] pLogPal;
|
||||
if ( hPal == 0 ) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user