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

Commit 9f20633e authored by Dan Stoza's avatar Dan Stoza
Browse files

HWC2On1Adapter: Fix fd leak in Layer::dump

Removes the fence dump from Layer::dump, since:
  a) It was leaking (a dup() without a close())
  b) It's not that useful anyway since it wasn't displaying the actual
     fence fd

Test: Manual
Bug: 73979009
Change-Id: I8f7446a05a1bab8c3ca781610ebeb98d17fa483b
parent 86b9e6d4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2094,8 +2094,7 @@ std::string HWC2On1Adapter::Layer::dump() const {
    } else if (mCompositionType == HWC2::Composition::Sideband) {
        output << "  Handle: " << mSidebandStream << '\n';
    } else {
        output << "  Buffer: " << mBuffer.getBuffer() << "/" <<
                mBuffer.getFence() << '\n';
        output << "  Buffer: " << mBuffer.getBuffer() << '\n';
        output << fill << "  Display frame [LTRB]: " <<
                rectString(mDisplayFrame) << '\n';
        output << fill << "  Source crop: " <<