1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Arrays allocated with new[] must be deleted with delete[]

This commit is contained in:
Michał W. Urbańczyk
2007-12-23 16:46:33 +00:00
parent 6c2cf4ba29
commit 06a081c924
5 changed files with 11 additions and 11 deletions

View File

@@ -1142,7 +1142,7 @@ void CResDataBar::draw()
printAt(processStr(datetext,temp),txtpos[7].first,txtpos[7].second,GEOR13,zwykly);
temp.clear();
//updateRect(&pos,ekran);
delete buf;
delete[] buf;
}
CInfoBar::CInfoBar()
{