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

Commit 752b1bab authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Dereference cached Bitmaps in EventLogger"

am: 456238e5

Change-Id: I4a294e30e93237bf95352f5ec30076df7dcbfc04
parents 5e66c1b8 456238e5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -570,6 +570,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);
    }