diff options
author | 2025-03-18 08:15:24 -0700 | |
---|---|---|
committer | 2025-03-18 08:15:24 -0700 | |
commit | 969e7ea620148cad0dc103b1df1516b2822ebe3a (patch) | |
tree | a6f89249430e2a00cde0e516623f7e32121dae34 /cmds/flatland/GLHelper.cpp | |
parent | 4b5277998b867b95bd340c09f0c137dc9738f006 (diff) | |
parent | 9045666047d55134c2e4f0108a88b5799653003e (diff) |
Merge changes I60d42f38,I25857739 into main
* changes:
Ensure Choreographer is held as sp<> in SurfaceControl.
Harden construction sites of android::StrongPointer in frameworks/native
Diffstat (limited to 'cmds/flatland/GLHelper.cpp')
-rw-r--r-- | cmds/flatland/GLHelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/flatland/GLHelper.cpp b/cmds/flatland/GLHelper.cpp index 6e6d27d463..a2e171fa3b 100644 --- a/cmds/flatland/GLHelper.cpp +++ b/cmds/flatland/GLHelper.cpp @@ -241,7 +241,7 @@ bool GLHelper::createWindowSurface(uint32_t w, uint32_t h, status_t err; if (mSurfaceComposerClient == nullptr) { - mSurfaceComposerClient = new SurfaceComposerClient; + mSurfaceComposerClient = sp<SurfaceComposerClient>::make(); } err = mSurfaceComposerClient->initCheck(); if (err != NO_ERROR) { |