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

Skip to content
Commit 8437d9f6 authored by Jiyong Park's avatar Jiyong Park
Browse files

Fix double-freeing of ScopedAResource

Default move constructor didn't reset mT to nullptr, which caused double
freeing of mT when returning ScopedAResource without NRVO. Fixing the
bug by resetting mT to its default value.

Test: atest under cts/tests/tests/binder_ndk
Change-Id: I04c874f802d8f88fa5f495776c00f7e2f74db094
parent f25cf066
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment