inputflinger_input_dispatcher_fuzzer : Fix memory leak

Call 'SurfaceComposerClient::removeWindowInfosListener()' through
the destructor of the 'InputDispatcher' class to prevent memory leak.

Test: ./inputflinger_input_dispatcher_fuzzer
Bug: 393071877
Flag: EXEMPT bugfix

Change-Id: I7966039e665529a0c6bdf73d401de67621a0ef24
diff --git a/services/inputflinger/dispatcher/InputDispatcher.cpp b/services/inputflinger/dispatcher/InputDispatcher.cpp
index 8510698..4c8147d 100644
--- a/services/inputflinger/dispatcher/InputDispatcher.cpp
+++ b/services/inputflinger/dispatcher/InputDispatcher.cpp
@@ -971,6 +971,9 @@
     resetKeyRepeatLocked();
     releasePendingEventLocked();
     drainInboundQueueLocked();
+#if defined(__ANDROID__)
+    SurfaceComposerClient::getDefault()->removeWindowInfosListener(mWindowInfoListener);
+#endif
     mCommandQueue.clear();
 }