diff --git a/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp b/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp index fc81310c7783500168560e001d6a294ed8fcdae4..ea50f385ee381e223c90e3a1445eac74d3c35a4d 100644 --- a/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp +++ b/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp @@ -4737,12 +4737,6 @@ void OnGestureRecognizerJudgeBegin1Impl(Ark_NativePointer node, auto arkValOthers = holderOthers.ArkValue(); auto resultOpt = callback.InvokeWithOptConvertResult(arkGestEvent, arkValCurrent, arkValOthers); - if (auto accessor = GetGestureRecognizerAccessor(); accessor) { - accessor->destroyPeer(arkValCurrent); - holderOthers.Release([accessor](Ark_GestureRecognizer& item) { - accessor->destroyPeer(item); - }); - } return resultOpt.value_or(defVal); }; auto convValue = Converter::OptConvertPtr(exposeInnerGesture); @@ -4775,12 +4769,6 @@ void ShouldBuiltInRecognizerParallelWithImpl(Ark_NativePointer node, auto arkValOthers = holderOthers.ArkValue(); auto resultOpt = callback.InvokeWithOptConvertResult, Ark_GestureRecognizer, Callback_GestureRecognizer_Void>(arkValCurrent, arkValOthers); - if (auto accessor = GetGestureRecognizerAccessor(); accessor) { - accessor->destroyPeer(arkValCurrent); - holderOthers.Release([accessor](Ark_GestureRecognizer& item) { - accessor->destroyPeer(item); - }); - } return resultOpt.value_or(nullptr); }; ViewAbstract::SetShouldBuiltInRecognizerParallelWith(frameNode, std::move(shouldBuiltInRecognizerParallelWithFunc));