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

Commit f44ebf5f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Silence a memory leak warning from the static analyzer"

parents d00de318 13d7ddac
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -416,7 +416,9 @@ TessellationCache::Buffer* TessellationCache::getOrCreateBuffer(
            mProcessor = new TessellationProcessor(Caches::getInstance());
        }
        mProcessor->add(task);
        mCache.put(entry, buffer);
        bool inserted = mCache.put(entry, buffer);
        // Note to the static analyzer that this insert should always succeed.
        LOG_ALWAYS_FATAL_IF(!inserted, "buffers shouldn't spontaneously appear in the cache");
    }
    return buffer;
}