From f1e10ef169c9caa22f90f0b3d8f4527649aca7fc Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Mon, 20 Aug 2018 11:21:40 +0900 Subject: [PATCH] [Tizen][Temporary Fix] Restore to call InputMethodContext::Finalize() - Destroying InputMethodContext from C# side needs to shout down the object clearly. - Removed comments in CSharp_Dali_InputMethodContext_Finalize() Change-Id: I17e80c858b042b198118d3f06ae2747819a420f1 Signed-off-by: Seoyeon Kim --- dali-csharp-binder/src/input-method-context.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dali-csharp-binder/src/input-method-context.cpp b/dali-csharp-binder/src/input-method-context.cpp index ddcd31c..abb2e3f 100755 --- a/dali-csharp-binder/src/input-method-context.cpp +++ b/dali-csharp-binder/src/input-method-context.cpp @@ -460,14 +460,12 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_InputMethodContext_CallbackData(v } SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodContext_Finalize(void * jarg1) { - //This is not necessary in tizen5.0, but because of backwards compatibility, the method is maintained but the body is deleted. - //Dali::InputMethodContext *arg1 = (Dali::InputMethodContext *) 0 ; + Dali::InputMethodContext *arg1 = (Dali::InputMethodContext *) 0 ; - //arg1 = (Dali::InputMethodContext *)jarg1; + arg1 = (Dali::InputMethodContext *)jarg1; { try { - //This is not necessary in tizen5.0, but because of backwards compatibility, the method is maintained but the body is deleted. - //(arg1)->Finalize(); + (arg1)->Finalize(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; -- 2.7.4