BCollator::Archive(), use free() instead of delete
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
This commit is contained in:
parent
10dbe57ef3
commit
517050adb5
|
@ -208,7 +208,7 @@ BCollator::Archive(BMessage* archive, bool deep) const
|
|||
|
||||
if (status == B_OK && error == U_ZERO_ERROR)
|
||||
status = archive->AddData("loc:collator", B_RAW_TYPE, buffer, size);
|
||||
delete buffer;
|
||||
free(buffer);
|
||||
|
||||
if (error == U_ZERO_ERROR)
|
||||
return status;
|
||||
|
|
Loading…
Reference in New Issue