composer: dup handle before storing it

use dupToAidl to store handles in the command writer instead of
makeToAidl, to match the HIDL behaviour

Bug: 198190384
Test: build
Change-Id: Idb46de2182048d4fb3d6b598246c62e1969f629b
This commit is contained in:
Ady Abraham
2021-10-20 18:08:37 +00:00
parent 5a461fa66b
commit 2d43bb71b0

View File

@@ -626,7 +626,7 @@ class CommandWriterBase {
return;
}
mDataHandles.push_back(::android::makeToAidl(handle));
mDataHandles.push_back(::android::dupToAidl(handle));
writeSigned(mDataHandles.size() - 1);
}