Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ee1270c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "libhwui: AnimatedImageThread fix 'UAF' nits" into sc-dev

parents f4d92139 16d2ddd8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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() {