aboutsummaryrefslogtreecommitdiff
path: root/src/processor/module_serializer.h
diff options
context:
space:
mode:
authorSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-11-03 23:54:01 +0000
committerSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-11-03 23:54:01 +0000
commitbbd8e82a7fa12d8c56882ec6a9d6d42bebd7983c (patch)
tree877efd725b0ee7c3027a0879a4807647826ca1fb /src/processor/module_serializer.h
parent3b4ac42ff8798ecebe32e73644170e261b044f64 (diff)
downloadgoogle-breakpad-bbd8e82a7fa12d8c56882ec6a9d6d42bebd7983c.tar.gz
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
Diffstat (limited to 'src/processor/module_serializer.h')
-rw-r--r--src/processor/module_serializer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/processor/module_serializer.h b/src/processor/module_serializer.h
index 7a05827d..3b440a60 100644
--- a/src/processor/module_serializer.h
+++ b/src/processor/module_serializer.h
@@ -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);