delete -> free(), as the array is allocated with malloc

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27513 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-15 07:37:03 +00:00
parent 2749af3ff8
commit 697dfc3e47

View File

@ -359,7 +359,7 @@ TextOutput::FlattenedRunArray(int32 &_size)
void *flattenedRunArray = BTextView::FlattenRunArray(array, &_size);
delete array;
free(array);
return flattenedRunArray;
}