mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-26 17:25:04 +01:00
Make memory allocation/deallocation consistent: use new char[] instead of operator new()
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@724 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
3b4ac42ff8
commit
bbd8e82a7f
6 changed files with 26 additions and 28 deletions
|
|
@ -71,13 +71,13 @@ class ModuleSerializer {
|
|||
// the address of memory chunk. If size != NULL, *size is set to the memory
|
||||
// size allocated for the serialized data.
|
||||
// Caller takes the ownership of the memory chunk (allocated on heap), and
|
||||
// should call delete instead of delete [] to free it.
|
||||
// owner should call delete [] to free the memory after use.
|
||||
char* Serialize(const BasicSourceLineResolver::Module &module,
|
||||
unsigned int *size = NULL);
|
||||
|
||||
// Given the string format symbol_data, produces a chunk of serialized data.
|
||||
// Caller takes ownership of the serialized data (on heap), and should call
|
||||
// delete instead of delete [] to free it.
|
||||
// Caller takes ownership of the serialized data (on heap), and owner should
|
||||
// call delete [] to free the memory after use.
|
||||
char* SerializeSymbolFileData(const string &symbol_data,
|
||||
unsigned int *size = NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue