summaryrefslogtreecommitdiff
path: root/libs/gui/BufferReleaseChannel.cpp
diff options
context:
space:
mode:
author Anton Ivanov <aii@google.com> 2025-02-20 11:52:50 -0800
committer Anton Ivanov <aii@google.com> 2025-02-26 10:51:53 -0800
commit8ed86598b8e5ee2ef1bf1f69e467489e620635e0 (patch)
treeaaea52463dcc535ab2a56ad8941c7d21025ef226 /libs/gui/BufferReleaseChannel.cpp
parentaf9a9ce3f96c6a31684f3b5885722919a1f5ec62 (diff)
Revert^2 "Harden construction sites of android::StrongPointer."
This reverts commit f73db7a6242e297ead71df0d0d1fb3a8515245d3. Reason for revert: Scope restricted to sp<>::make which is a safe replacement for assignment from new. Bug: 393217449 Test: ChoreographerTests pass locally. Flag: EXEMPT_refactor Change-Id: I9a38c54c06cc64da099d282c05ccf20f40b70a72
Diffstat (limited to 'libs/gui/BufferReleaseChannel.cpp')
-rw-r--r--libs/gui/BufferReleaseChannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/BufferReleaseChannel.cpp b/libs/gui/BufferReleaseChannel.cpp
index e9cb013baf..4f495d039d 100644
--- a/libs/gui/BufferReleaseChannel.cpp
+++ b/libs/gui/BufferReleaseChannel.cpp
@@ -108,7 +108,7 @@ status_t BufferReleaseChannel::Message::flatten(void*& buffer, size_t& size, int
status_t BufferReleaseChannel::Message::unflatten(void const*& buffer, size_t& size,
int const*& fds, size_t& count) {
- releaseFence = new Fence();
+ releaseFence = sp<Fence>::make();
if (status_t err = releaseFence->unflatten(buffer, size, fds, count); err != OK) {
return err;
}
@@ -344,4 +344,4 @@ status_t BufferReleaseChannel::open(std::string name,
return STATUS_OK;
}
-} // namespace android::gui \ No newline at end of file
+} // namespace android::gui