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

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

Merge "Fix clang static analyzer warnings."

parents a97d58a2 e8278ac8
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include <utils/Mutex.h>
#include <utils/Condition.h>

#include <vector>
#define CPU_CONSUMER_TEST_FORMAT_RAW 0
#define CPU_CONSUMER_TEST_FORMAT_Y8 0
#define CPU_CONSUMER_TEST_FORMAT_Y16 0
@@ -635,7 +636,7 @@ TEST_P(CpuConsumerTest, FromCpuLockMax) {

    // Consume

    CpuConsumer::LockedBuffer *b = new CpuConsumer::LockedBuffer[params.maxLockedBuffers];
    std::vector<CpuConsumer::LockedBuffer> b(params.maxLockedBuffers);
    for (int i = 0; i < params.maxLockedBuffers; i++) {
        ALOGV("Locking frame %d", i);
        err = mCC->lockNextBuffer(&b[i]);
@@ -684,9 +685,6 @@ TEST_P(CpuConsumerTest, FromCpuLockMax) {
    for (int i = 1; i < params.maxLockedBuffers; i++) {
        mCC->unlockBuffer(b[i]);
    }

    delete[] b;

}

CpuConsumerTestParams y8TestSets[] = {