* commit '145cac85f8ff077447d282c147e4c8865833b76a': Memory leak in IInputMethodSessionWrapper executeMessage
This commit is contained in:
@@ -75,7 +75,15 @@ class IInputMethodSessionWrapper extends IInputMethodSession.Stub
|
||||
@Override
|
||||
public void executeMessage(Message msg) {
|
||||
if (mInputMethodSession == null) {
|
||||
// The session has been finished.
|
||||
// The session has been finished. Args needs to be recycled
|
||||
// for cases below.
|
||||
switch (msg.what) {
|
||||
case DO_UPDATE_SELECTION:
|
||||
case DO_APP_PRIVATE_COMMAND: {
|
||||
SomeArgs args = (SomeArgs)msg.obj;
|
||||
args.recycle();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user