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

Commit 2d43bb71 authored by Ady Abraham's avatar Ady Abraham
Browse files

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
parent 5a461fa6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -626,7 +626,7 @@ class CommandWriterBase {
            return;
        }

        mDataHandles.push_back(::android::makeToAidl(handle));
        mDataHandles.push_back(::android::dupToAidl(handle));
        writeSigned(mDataHandles.size() - 1);
    }