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

Commit 25d1fafb authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Dereference cached Bitmaps in EventLogger" into oc-dev am: 0764d82c

am: ac017318

Change-Id: I6c3cee1ce4745292111e2bb12a179b395895e358
parents e9ebf24b ac017318
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -604,6 +604,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);
    }