Fix svace issue 35/243335/1 devel/master
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 24 Aug 2020 04:18:21 +0000 (13:18 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Mon, 7 Sep 2020 01:05:29 +0000 (10:05 +0900)
Change-Id: Ib10773e53da1972cf1a4baf2183d77f546911823
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index 9b79efdd89c791ebb493b48969b5a7400c9d3d1a..b2e2d597a07fc02d34ec7e0fd67dfa7920e34c03 100755 (executable)
@@ -33800,12 +33800,14 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Actor_GetName(void * jarg1) {
   char * jresult ;
   Dali::Actor *arg1 = (Dali::Actor *) 0 ;
   std::string *result = 0 ;
+  std::string name = "";
 
   arg1 = (Dali::Actor *)jarg1;
   {
     try {
-      std::string name = ((Dali::Actor const *)arg1)->GetProperty< std::string >( Dali::Actor::Property::NAME );
+      name = ((Dali::Actor const *)arg1)->GetProperty< std::string >( Dali::Actor::Property::NAME );
       result = (std::string *) &name;
+      jresult = SWIG_csharp_string_callback(result->c_str());
     } catch (std::out_of_range& e) {
       {
         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
@@ -33824,8 +33826,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Actor_GetName(void * jarg1) {
       };
     }
   }
-
-  jresult = SWIG_csharp_string_callback(result->c_str());
   return jresult;
 }