Merge "libhwui: AnimatedImageThread fix 'UAF' nits" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5ee1270cab
@@ -22,12 +22,12 @@ namespace android {
|
||||
namespace uirenderer {
|
||||
|
||||
AnimatedImageThread& AnimatedImageThread::getInstance() {
|
||||
[[clang::no_destroy]] static sp<AnimatedImageThread> sInstance = []() {
|
||||
static sp<AnimatedImageThread> sInstance = []() {
|
||||
sp<AnimatedImageThread> thread = sp<AnimatedImageThread>::make();
|
||||
thread->start("AnimatedImageThread");
|
||||
return thread;
|
||||
}();
|
||||
return *sInstance.get();
|
||||
return *sInstance;
|
||||
}
|
||||
|
||||
AnimatedImageThread::AnimatedImageThread() {
|
||||
|
||||
Reference in New Issue
Block a user