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

Commit ca88e357 authored by James Dong's avatar James Dong
Browse files

Fix memory leakage due to unreleased MuxOMX objects after disconnection

o related-to-bug: 5984232

Change-Id: I20cbeff6ae865e995d02342549f1e09320543740
parent 61fd70a3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -335,6 +335,10 @@ status_t OMXClient::connect() {
}

void OMXClient::disconnect() {
    if (mOMX.get() != NULL) {
        mOMX.clear();
        mOMX = NULL;
    }
}

}  // namespace android