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

Commit 456238e5 authored by Brad Ebinger's avatar Brad Ebinger Committed by Gerrit Code Review
Browse files

Merge "Dereference cached Bitmaps in EventLogger"

parents 897e851f d650a032
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);
    }