[Non-ACR][NUI] Fix PixelData crash issue 93/203693/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 17 Apr 2019 05:37:59 +0000 (14:37 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 17 Apr 2019 05:39:41 +0000 (14:39 +0900)
Change-Id: Idec788493e1d3fba9e815aac93a4cbeb549d1ef5
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
tct-suite-vs/Tizen.NUI.Tests/testcase/TSTexture.cs

index 5303b6f..990b091 100755 (executable)
@@ -110,8 +110,7 @@ namespace Tizen.NUI.Tests
                 uint height = 64;
                 Texture texture = new Texture(TextureType.TEXTURE_2D, PixelFormat.RGBA8888, width, height);
                 uint bufferSize = width * height * 4;\r
-                byte[] buffer = new byte[bufferSize];\r
-                PixelData pixelData = new PixelData(buffer, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);\r
+                PixelData pixelData = new PixelData(null, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);\r
                 texture.Upload(pixelData);
             }
             catch (Exception e)
@@ -139,8 +138,7 @@ namespace Tizen.NUI.Tests
                 uint height = 64;
                 Texture texture = new Texture(TextureType.TEXTURE_2D, PixelFormat.RGBA8888, width, height);
                 uint bufferSize = width * height * 2;\r
-                byte[] buffer = new byte[bufferSize];\r
-                PixelData pixelData = new PixelData(buffer, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);
+                PixelData pixelData = new PixelData(null, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);
                 texture.Upload(pixelData, 0u, 0u, width / 2, height / 2, width / 2, height / 2);
             }
             catch (Exception e)