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:
parent
b56c51bcba
commit
2749af3ff8
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user