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

Commit 6239d3b3 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Dereference cached Bitmaps in EventLogger" am: 456238e5

am: 752b1bab

Change-Id: I7e2964b00410072bedc3afa4d7925486310a863b
parents 6784b4f7 752b1bab
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);
    }