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

Commit cb64cd2c authored by Andreas Huber's avatar Andreas Huber
Browse files

Still don't know why the heap gets corrupted, but not deleting the...

Still don't know why the heap gets corrupted, but not deleting the OMXNodeInstance appears to prevent this from happening.
parent 7fad4ee7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -120,7 +120,8 @@ status_t OMXNodeInstance::freeNode() {
    mNodeID = NULL;

    LOGI("OMXNodeInstance going away.");
    delete this;
    mObserver.clear();
    // delete this;  // leads to heap-corruption???

    return StatusFromOMXError(err);
}