Recycle motion event after cancel delegate from assistant input consumer

Related: ag/6737054

Test: manual
Bug: 112934365
Change-Id: I7bf439fc58c986fa9972911a02a4035cfd867c34
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/AssistantTouchConsumer.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/AssistantTouchConsumer.java
index 5494052..c00b4dc 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/AssistantTouchConsumer.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/AssistantTouchConsumer.java
@@ -160,6 +160,7 @@
                                 MotionEvent event = MotionEvent.obtain(ev);
                                 event.setAction(MotionEvent.ACTION_CANCEL);
                                 mConsumerDelegate.onMotionEvent(event);
+                                event.recycle();
                             }
                         } else {
                             mState = STATE_DELEGATE_ACTIVE;