summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Anton Ivanov <aii@google.com> 2025-03-03 11:38:32 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-03 11:38:32 -0800
commitc9eb89a948b1a5f707715ba59aa26e25c0bdb8c2 (patch)
tree0574ed75b803e176ddd5e69abfcd2295a494fa3b /cmds/bootanimation/BootAnimation.cpp
parentd86e469813603cc42d8cd9cf380bbc1cfaa12539 (diff)
parenta4c448d5f17cbf3e24755dabb9b06509960274ec (diff)
Merge "Harden construction sites of android::Surface." into main
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp2
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()) {