1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-03 23:19:22 +02:00

- one more unitialized memory crash (#1163)

- minor tweaks for hero handler
This commit is contained in:
Ivan Savenko
2012-12-15 13:40:22 +00:00
parent f05b398e5c
commit c764ce6ebe
3 changed files with 13 additions and 21 deletions

View File

@@ -84,9 +84,13 @@ class CFileCache
std::copy(data, data + size, ret);
return ret;
}
FileData():
size(0),
data(nullptr)
{}
~FileData()
{
delete data;
delete [] data;
}
};