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

Commit d7818abc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix memory leak in HWC2to1Adapter"

parents 39877506 ec0a9565
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ void HWC2On1Adapter::DisplayContentsDeleter::operator()(
        for (size_t l = 0; l < contents->numHwLayers; ++l) {
            auto& layer = contents->hwLayers[l];
            std::free(const_cast<hwc_rect_t*>(layer.visibleRegionScreen.rects));
            std::free(const_cast<hwc_rect_t*>(layer.surfaceDamage.rects));
        }
    }
    std::free(contents);