changeset 17369:ddf9b25058d4

8180011: Cleaner native graphics device handling Reviewed-by: serb, mschoene, rhalade
author prr
date Wed, 17 May 2017 14:57:10 -0700
parents 60ed0f763a96
children c862277474d9
files src/java.desktop/windows/native/libawt/java2d/d3d/D3DGraphicsDevice.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/native/libawt/java2d/d3d/D3DGraphicsDevice.cpp	Wed May 17 14:52:09 2017 -0700
+++ b/src/java.desktop/windows/native/libawt/java2d/d3d/D3DGraphicsDevice.cpp	Wed May 17 14:57:10 2017 -0700
@@ -98,7 +98,7 @@
 
     jstring ret = JNU_NewStringPlatform(env, pAdapterId);
 
-    delete pAdapterId;
+    delete[] pAdapterId;
 
     return ret;
 }