diff options
author | 2025-03-03 11:38:32 -0800 | |
---|---|---|
committer | 2025-03-03 11:38:32 -0800 | |
commit | c9eb89a948b1a5f707715ba59aa26e25c0bdb8c2 (patch) | |
tree | 0574ed75b803e176ddd5e69abfcd2295a494fa3b /cmds/bootanimation/BootAnimation.cpp | |
parent | d86e469813603cc42d8cd9cf380bbc1cfaa12539 (diff) | |
parent | a4c448d5f17cbf3e24755dabb9b06509960274ec (diff) |
Merge "Harden construction sites of android::Surface." into main
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 844e52c3ecf2..b0070c5faa36 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -207,7 +207,7 @@ BootAnimation::BootAnimation(sp<Callbacks> callbacks) : Thread(false), mLooper(new Looper(false)), mClockEnabled(true), mTimeIsAccurate(false), mTimeFormat12Hour(false), mTimeCheckThread(nullptr), mCallbacks(callbacks) { ATRACE_CALL(); - mSession = new SurfaceComposerClient(); + mSession = sp<SurfaceComposerClient>::make(); std::string powerCtl = android::base::GetProperty("sys.powerctl", ""); if (powerCtl.empty()) { |