changeset 10788:e6e51e990169

8180087: Cleaner FX robot handling Reviewed-by: ddhill, mschoene, rhalade
author kcr
date Thu, 18 May 2017 16:56:40 -0700
parents 884b34bd00a1
children 1c6936f98909
files modules/javafx.graphics/src/main/native-glass/win/Robot.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.graphics/src/main/native-glass/win/Robot.cpp	Tue Mar 07 09:29:31 2017 +0530
+++ b/modules/javafx.graphics/src/main/native-glass/win/Robot.cpp	Thu May 18 16:56:40 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 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
@@ -311,7 +311,7 @@
 
         // copy pixels into Java array
         env->SetIntArrayRegion(pixelArray, 0, numPixels, pixelData);
-        delete pixelData;
+        delete[] pixelData;
     }
 }