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

Commit 1a8a213b authored by Damien Bargiacchi's avatar Damien Bargiacchi
Browse files

Fix use-after-free: release the animation after we're done with it

Bug: 64504131
Change-Id: Ibddbc37d96957eeec63035d7f045a8982fb04254
parent ddc0f7ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -859,12 +859,12 @@ bool BootAnimation::movie()
        mTimeCheckThread = nullptr;
    }

    releaseAnimation(animation);

    if (clockFontInitialized) {
        glDeleteTextures(1, &animation->clockFont.texture.name);
    }

    releaseAnimation(animation);

    return false;
}