From 2e3f418f43304cbff69d5136e29c6009bb30d455 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Fri, 21 Apr 2017 14:44:22 +0900 Subject: [PATCH] Fix SVACE issue - MEMORY_LEAK.EX Change-Id: I6c24701d59efc6608156ae8ff5aef30fe7a98ca9 Signed-off-by: dongsug.song --- plugins/dali-swig/manual/cpp/event-thread-callback-wrap.cpp | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 plugins/dali-swig/manual/cpp/event-thread-callback-wrap.cpp diff --git a/plugins/dali-swig/manual/cpp/event-thread-callback-wrap.cpp b/plugins/dali-swig/manual/cpp/event-thread-callback-wrap.cpp old mode 100644 new mode 100755 index 736c697..ced564b --- a/plugins/dali-swig/manual/cpp/event-thread-callback-wrap.cpp +++ b/plugins/dali-swig/manual/cpp/event-thread-callback-wrap.cpp @@ -39,14 +39,17 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_EventThreadCallback(SWIG_CallbackM result = (Dali::EventThreadCallback *)new Dali::EventThreadCallback((Dali::CallbackBase *)Dali::MakeCallback(arg1)); } catch (std::out_of_range& e) { { + delete result; SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; }; } catch (std::exception& e) { { + delete result; SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; }; } catch (...) { { + delete result; SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } -- 2.7.4