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:
parent
2749af3ff8
commit
697dfc3e47
@ -359,7 +359,7 @@ TextOutput::FlattenedRunArray(int32 &_size)
|
||||
|
||||
void *flattenedRunArray = BTextView::FlattenRunArray(array, &_size);
|
||||
|
||||
delete array;
|
||||
free(array);
|
||||
|
||||
return flattenedRunArray;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user