Fix PixelData ReleaseFunction type + Remove memoryleak potential 56/262756/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 19 Aug 2021 07:23:15 +0000 (16:23 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 19 Aug 2021 08:45:21 +0000 (17:45 +0900)
commitcc0bc0263f7308f77f9a9dfc37ae721ea1a2233c
treec74f2b50e621f4f81c942c10cd906bade7c332ed
parente1c5638fba8ad1d67b63661b21a3bdad57fa7782
Fix PixelData ReleaseFunction type + Remove memoryleak potential

In dali-wrap.cpp, PixelData's buffer always create by new method.
But the releaseFunction used by input value.

So I fixed the ReleaseFunctoin type ans DELETE_ARRAY.

+

It have potential of memory leak when we got some exceptions during PixelData::New();
So I add every memory release routines inside of catch routine

+

Rename each arguments relative with PixelData

Change-Id: I7cc3b31049e9d3336469b9aeb22d8e889fd2e03b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/src/dali-wrap.cpp