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

Commit 0764d82c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Dereference cached Bitmaps in EventLogger" into oc-dev

parents 2f737bc2 a219bf93
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -578,6 +578,13 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable {
    }

    public void destroy() {
        // We should not keep these bitmaps around because the Call objects may be held for logging
        // purposes.
        // TODO: Make a container object that only stores the information we care about for Logging.
        if (mCallerInfo != null) {
            mCallerInfo.cachedPhotoIcon = null;
            mCallerInfo.cachedPhoto = null;
        }
        Log.addEvent(this, LogUtils.Events.DESTROYED);
    }