BCollator::Archive(), use free() instead of delete

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
This commit is contained in:
Murai Takashi 2013-07-13 19:54:49 +09:00 committed by Oliver Tappe
parent 10dbe57ef3
commit 517050adb5
1 changed files with 1 additions and 1 deletions

View File

@ -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;