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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user