Fix svace issue 36/243336/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.113023 accepted/tizen/6.0/unified/hotfix/20201103.000858 accepted/tizen/6.5/unified/20211028.114343 accepted/tizen/7.0/unified/20221110.061903 accepted/tizen/7.0/unified/hotfix/20221116.105945 accepted/tizen/unified/20200908.060757 submit/tizen/20200907.023138 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 submit/tizen_6.5/20211028.163101 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
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:07:10 +0000 (10:07 +0900)
Change-Id: I93ab6e074a6617f909ede4d321b78a1b5491ef27
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index 9b79efd..b2e2d59 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;
 }