mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-23 06:41:17 +00:00
Remove a call to new[] from WriteDSODebugStream
R=mark at https://breakpad.appspot.com/523002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1107 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
1f87c4a732
commit
015e79275e
|
@ -1144,11 +1144,10 @@ class MinidumpWriter {
|
||||||
debug.get()->ldbase = (void*)debug_entry.r_ldbase;
|
debug.get()->ldbase = (void*)debug_entry.r_ldbase;
|
||||||
debug.get()->dynamic = dynamic;
|
debug.get()->dynamic = dynamic;
|
||||||
|
|
||||||
char* dso_debug_data = new char[dynamic_length];
|
wasteful_vector<char> dso_debug_data(dumper_->allocator(), dynamic_length);
|
||||||
dumper_->CopyFromProcess(dso_debug_data, GetCrashThread(), dynamic,
|
dumper_->CopyFromProcess(&dso_debug_data[0], GetCrashThread(), dynamic,
|
||||||
dynamic_length);
|
dynamic_length);
|
||||||
debug.CopyIndexAfterObject(0, dso_debug_data, dynamic_length);
|
debug.CopyIndexAfterObject(0, &dso_debug_data[0], dynamic_length);
|
||||||
delete[] dso_debug_data;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue