Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30631e9f authored by Akhilesh Sanikop's avatar Akhilesh Sanikop Committed by Akhilesh Sanikop (xWF)
Browse files

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
parent 9ab3261b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -971,6 +971,9 @@ InputDispatcher::~InputDispatcher() {
    resetKeyRepeatLocked();
    releasePendingEventLocked();
    drainInboundQueueLocked();
#if defined(__ANDROID__)
    SurfaceComposerClient::getDefault()->removeWindowInfosListener(mWindowInfoListener);
#endif
    mCommandQueue.clear();
}