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

Commit 1f1fcb70 authored by Romain Guy's avatar Romain Guy
Browse files

Don't delete objects twice...

Change-Id: Ibc67aed098c9300cf45eb46abda1938c418808c3
parent 24c00216
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -413,10 +413,10 @@ private:

        SkiaShader* shaderCopy = mShaderMap.valueFor(shader);
        // TODO: We also need to handle generation ID changes in compose shaders
        if (!shaderCopy || shaderCopy->getGenerationId() != shader->getGenerationId()) {
        if (shaderCopy == NULL || shaderCopy->getGenerationId() != shader->getGenerationId()) {
            shaderCopy = shader->copy();
            mShaderMap.add(shader, shaderCopy);
            mShaders.add(shader);
            mShaders.add(shaderCopy);
        }

        addInt((int) shaderCopy);