Merge "Fix a use-after-free found by HWAsan."
am: 82cf8de1f3
Change-Id: I74e90250ec2e1d90da89c16de77925044f55cb1c
This commit is contained in:
@@ -106,8 +106,9 @@ void SkiaMemoryTracer::processElement() {
|
||||
resourceValues.insert({key, sizeResult->second});
|
||||
}
|
||||
} else {
|
||||
TraceValue sizeValue = sizeResult->second;
|
||||
mCurrentValues.clear();
|
||||
mCurrentValues.insert({key, sizeResult->second});
|
||||
mCurrentValues.insert({key, sizeValue});
|
||||
mResults.insert({resourceName, mCurrentValues});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user