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

Commit 82cf8de1 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Gerrit Code Review
Browse files

Merge "Fix a use-after-free found by HWAsan."

parents c1a15b81 13a734dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -106,8 +106,9 @@ void SkiaMemoryTracer::processElement() {
                resourceValues.insert({key, sizeResult->second});
                resourceValues.insert({key, sizeResult->second});
            }
            }
        } else {
        } else {
            TraceValue sizeValue = sizeResult->second;
            mCurrentValues.clear();
            mCurrentValues.clear();
            mCurrentValues.insert({key, sizeResult->second});
            mCurrentValues.insert({key, sizeValue});
            mResults.insert({resourceName, mCurrentValues});
            mResults.insert({resourceName, mCurrentValues});
        }
        }
    }
    }