summaryrefslogtreecommitdiff
path: root/debuggerd/libdebuggerd/test/UnwinderMock.h
diff options
context:
space:
mode:
Diffstat (limited to 'debuggerd/libdebuggerd/test/UnwinderMock.h')
-rw-r--r--debuggerd/libdebuggerd/test/UnwinderMock.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/debuggerd/libdebuggerd/test/UnwinderMock.h b/debuggerd/libdebuggerd/test/UnwinderMock.h
index 44a9214e5..8f84346af 100644
--- a/debuggerd/libdebuggerd/test/UnwinderMock.h
+++ b/debuggerd/libdebuggerd/test/UnwinderMock.h
@@ -33,8 +33,7 @@ class UnwinderMock : public unwindstack::Unwinder {
void MockSetBuildID(uint64_t offset, const std::string& build_id) {
unwindstack::MapInfo* map_info = GetMaps()->Find(offset);
if (map_info != nullptr) {
- std::string* new_build_id = new std::string(build_id);
- map_info->build_id = new_build_id;
+ map_info->SetBuildID(std::string(build_id));
}
}
};