Fix build under R5

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18367 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2006-08-03 15:01:38 +00:00
parent 19e5578eff
commit 2583a5828f
+13
View File
@@ -167,7 +167,20 @@ StyledEditView::GetStyledText(BPositionIO* stream)
// ... and here we restore it
SetRunArray(0, length, runArray);
#ifdef HAIKU_TARGET_PLATFORM_BEOS
// FreeRunArray does not exist on R5
// Call destructors explicitly
for (int32 i = 0; i < runArray->count; i++)
runArray->runs[i].font.~BFont();
free(runArray);
#else
FreeRunArray(runArray);
#endif
}
return result;