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

Commit caecc66b authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "Aapt2: Fix png leak" am: f62e3858

am: 5d4c38c6

Change-Id: I0a14e885d6e2cf886b9e87f395ffa5a600ef7f28
parents cfb79283 5d4c38c6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1080,6 +1080,10 @@ static bool do9Patch(PngInfo* image, std::string* outError) {
        newRows[i] = image->rows[i + 1];
        memmove(newRows[i], newRows[i] + 4, (W - 2) * 4);
    }
    delete[] image->rows[0];
    if (H - 1 > 0) {
      delete[] image->rows[H - 1];
    }
    image->rows.swap(newRows);

    image->width -= 2;