From 9c728668cad608fcdfe1ba1ec779947cba672096 Mon Sep 17 00:00:00 2001 From: illybyy Date: Wed, 25 May 2022 16:44:16 +0800 Subject: [PATCH] fix pointer stability issue Signed-off-by: illybyy --- .../inputmethod_controller/include/input_method_controller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/inputmethod_controller/include/input_method_controller.h b/frameworks/inputmethod_controller/include/input_method_controller.h index 246bcd8..720f1f0 100644 --- a/frameworks/inputmethod_controller/include/input_method_controller.h +++ b/frameworks/inputmethod_controller/include/input_method_controller.h @@ -91,7 +91,7 @@ namespace MiscServices { sptr mImms; sptr deathRecipient_; sptr mAgent; - OnTextChangedListener *textListener; + sptr textListener; InputAttribute mAttribute; std::u16string mTextString; int mSelectOldBegin = 0;