From fc5d8ff4ad286b46095228e3e33d851a8bb1d1a2 Mon Sep 17 00:00:00 2001 From: Wonkeun Oh Date: Wed, 11 May 2016 16:09:40 +0900 Subject: [PATCH] Fixed the bug that IMEngineInstance was deleted when the reset_keyboard_ise is called. when the reset_keyboard_ise is called, IMEngineInstance's member function should be called. but Pointer template class's member function(which delete the member obj) was called in the previous code. So IMEngineInstance obj was deleted and IMEngine doesn't work(can't input text using IME) after flush_imengine or reset_keyboard_ise is called Change-Id: I04ec5883f75b6eef2aa61fba1f0b8d9aa7150056 --- ism/src/scim_helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ism/src/scim_helper.cpp b/ism/src/scim_helper.cpp index a2a4f65..252c489 100644 --- a/ism/src/scim_helper.cpp +++ b/ism/src/scim_helper.cpp @@ -2199,7 +2199,7 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const if (!m_impl->si.null()) { m_impl->si->focus_out(); - m_impl->si.reset(); + m_impl->si->reset(); } if (m_impl->m_config.null ()) { @@ -2396,7 +2396,7 @@ HelperAgent::reset_keyboard_ise (void) const } #endif if (!m_impl->si.null ()) { - m_impl->si.reset (); + m_impl->si->reset (); } } -- 2.7.4