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

Commit 2d6d6e9a 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 97055951
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);
}