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

Commit 7b442dca authored by Ray Essick's avatar Ray Essick
Browse files

Oggwriter leaked underlying ogg structures

Writer didn't call the proper ogg cleanup routines from its destructor.

Bug: 207802631
Test: atest writerTest -- --enable-module-dynamic-download=true
Change-Id: Ic520132754eb8bc4d5c2d3ea0ed5da38b0adf26b
parent 05083be0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -67,7 +67,11 @@ OggWriter::~OggWriter() {
        mFd = -1;
    }

    if (mOs != nullptr) {
        ogg_stream_clear(mOs);
        free(mOs);
        mOs = nullptr;
    }
}

status_t OggWriter::initCheck() const {