Merge "libhwui: AnimatedImageThread fix 'UAF' nits" into sc-dev am: 5ee1270cab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14329087 Change-Id: Ie6afd381f39e3490486c8a798f1af52f5680f8a4
This commit is contained in:
@@ -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