Mercurial > hg > openjdk > jdk6 > jdk
changeset 1744:47f88326bdcd
8179990: Cleaner palette entry handling
Reviewed-by: prr, mschoene, rhalade
author | serb |
---|---|
date | Wed, 17 May 2017 18:22:54 -0700 |
parents | c4c55e626604 |
children | 5fdef68dca35 |
files | src/windows/native/sun/windows/awt_Palette.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Palette.cpp Thu Sep 07 16:12:33 2017 -0700 +++ b/src/windows/native/sun/windows/awt_Palette.cpp Wed May 17 18:22:54 2017 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2018, 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 @@ pEntry->peFlags = PC_EXPLICIT; } hPal = ::CreatePalette(pLogPal); - delete pLogPal; + delete[] pLogPal; if ( hPal == 0 ) { return 0; }