diff options
author | 2025-02-19 10:00:04 -0800 | |
---|---|---|
committer | 2025-02-19 10:00:04 -0800 | |
commit | 328dea0588d956e3bb20635fc80d8d04f63169fa (patch) | |
tree | b06a695ae036b7f61764ab0e6b7823797d249b61 /libs/gui/CpuConsumer.cpp | |
parent | 7ad24b9b794b282aa25d28c42832fd50815f0816 (diff) | |
parent | 81793808b9347a52dd979e4b3d5d9d10fc8c4915 (diff) |
Merge "Harden construction sites of android::StrongPointer." into main
Diffstat (limited to 'libs/gui/CpuConsumer.cpp')
-rw-r--r-- | libs/gui/CpuConsumer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp index 23b432e1f4..66fe2daba1 100644 --- a/libs/gui/CpuConsumer.cpp +++ b/libs/gui/CpuConsumer.cpp @@ -230,7 +230,7 @@ status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) { return err; } - sp<Fence> fence(fenceFd >= 0 ? new Fence(fenceFd) : Fence::NO_FENCE); + sp<Fence> fence(fenceFd >= 0 ? sp<Fence>::make(fenceFd) : Fence::NO_FENCE); addReleaseFenceLocked(ab.mSlot, ab.mGraphicBuffer, fence); releaseBufferLocked(ab.mSlot, ab.mGraphicBuffer); |