mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 12:15:52 +01: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()->dynamic = dynamic;
|
||||
|
||||
char* dso_debug_data = new char[dynamic_length];
|
||||
dumper_->CopyFromProcess(dso_debug_data, GetCrashThread(), dynamic,
|
||||
wasteful_vector<char> dso_debug_data(dumper_->allocator(), dynamic_length);
|
||||
dumper_->CopyFromProcess(&dso_debug_data[0], GetCrashThread(), dynamic,
|
||||
dynamic_length);
|
||||
debug.CopyIndexAfterObject(0, dso_debug_data, dynamic_length);
|
||||
delete[] dso_debug_data;
|
||||
debug.CopyIndexAfterObject(0, &dso_debug_data[0], dynamic_length);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user