projects
/
platform
/
core
/
uifw
/
dali-csharp-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4564883
)
Fix PixelData delete issue
78/203978/3
author
huiyu.eun
<huiyu.eun@samsung.com>
Thu, 18 Apr 2019 08:47:13 +0000
(17:47 +0900)
committer
huiyu eun
<huiyu.eun@samsung.com>
Mon, 22 Apr 2019 02:17:25 +0000
(
02:17
+0000)
Change-Id: Id2b4ee7a8f5d1a79669ddb0182e42550f438d055
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp
patch
|
blob
|
history
diff --git
a/dali-csharp-binder/src/dali_wrap.cpp
b/dali-csharp-binder/src/dali_wrap.cpp
index
0f24d59
..
72be598
100755
(executable)
--- a/
dali-csharp-binder/src/dali_wrap.cpp
+++ b/
dali-csharp-binder/src/dali_wrap.cpp
@@
-23975,7
+23975,9
@@
SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelData_New(unsigned char* jarg1, un
arg6 = (Dali::PixelData::ReleaseFunction)jarg6;
{
try {
- result = Dali::PixelData::New(arg1,arg2,arg3,arg4,arg5,arg6);
+ auto pixelBuffer = new unsigned char[jarg2];
+ memcpy( pixelBuffer, arg1, arg2);
+ result = Dali::PixelData::New(pixelBuffer,arg2,arg3,arg4,arg5,arg6);
} catch (std::out_of_range& e) {
{
SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;