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

Commit 3463e1de authored by Ray Essick's avatar Ray Essick Committed by android-build-merger
Browse files

Merge "Correct cleanup when compacting metrics attributes" into oc-mr1-dev am: 66bc7b72

am: a1a88b03

Change-Id: Ifdb2b46f3b34c33cf7595f607d53ede636cf3373
parents d441f0f1 a1a88b03
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ void MediaAnalyticsItem::clear() {

    // clean attributes
    // contents of the attributes
    for (size_t i = 0 ; i < mPropSize; i++ ) {
    for (size_t i = 0 ; i < mPropCount; i++ ) {
        clearProp(&mProps[i]);
    }
    // the attribute records themselves
@@ -300,7 +300,8 @@ bool MediaAnalyticsItem::removeProp(const char *name) {
        clearProp(prop);
        if (i != mPropCount-1) {
            // in the middle, bring last one down to fill gap
            mProps[i] = mProps[mPropCount-1];
            copyProp(prop, &mProps[mPropCount-1]);
            clearProp(&mProps[mPropCount-1]);
        }
        mPropCount--;
        return true;