diff options
author | 2025-02-19 19:11:17 -0800 | |
---|---|---|
committer | 2025-02-19 19:11:17 -0800 | |
commit | bb0c493501a5e71438faf15cef1b7e9af64e8a59 (patch) | |
tree | ebd647afba8b281b1f2a9ff53637d5fdd5c09efe /libs/gui/ConsumerBase.cpp | |
parent | 50098249722276f23cdf810459a158ad7b31a52c (diff) | |
parent | f73db7a6242e297ead71df0d0d1fb3a8515245d3 (diff) |
Merge "Revert "Harden construction sites of android::StrongPointer."" into main
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
-rw-r--r-- | libs/gui/ConsumerBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp index a52cef7203..67de742161 100644 --- a/libs/gui/ConsumerBase.cpp +++ b/libs/gui/ConsumerBase.cpp @@ -110,7 +110,7 @@ void ConsumerBase::initialize(bool controlledByApp) { // dropping to 0 at the end of the ctor. Since all we need is a wp<...> // that's what we create. wp<ConsumerListener> listener = static_cast<ConsumerListener*>(this); - sp<IConsumerListener> proxy = sp<BufferQueue::ProxyConsumerListener>::make(listener); + sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); status_t err = mConsumer->consumerConnect(proxy, controlledByApp); if (err != NO_ERROR) { |