8180011: Cleaner native graphics device handling
authorprr
Wed, 17 May 2017 14:57:10 -0700
changeset 48562 592c141b1ca3
parent 48561 f6796a7e4454
child 48563 d3d2db0f234f
8180011: Cleaner native graphics device handling Reviewed-by: serb, mschoene, rhalade
src/java.desktop/windows/native/libawt/java2d/d3d/D3DGraphicsDevice.cpp
--- 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;
 }