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

Commit 4974bc1b authored by Romain Guy's avatar Romain Guy
Browse files

Prevent crash when purging the gradients cache.

Bug #5133876

Change-Id: I3d1fa4e29498044796d725337ac93e6a1e8f0bcb
parent 1eb1f72c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -58,8 +58,8 @@ struct GradientCacheEntry {
    }

    ~GradientCacheEntry() {
        delete[] colors;
        delete[] positions;
        if (colors) delete[] colors;
        if (positions) delete[] positions;
    }

    bool operator<(const GradientCacheEntry& r) const {