BTextView::FlattenRunArray() doesn't take ownership of the passed array. Fixes CID 904

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27512 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-15 07:35:58 +00:00
parent b56c51bcba
commit 2749af3ff8

View File

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