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:
@@ -84,9 +84,13 @@ class CFileCache
|
||||
std::copy(data, data + size, ret);
|
||||
return ret;
|
||||
}
|
||||
FileData():
|
||||
size(0),
|
||||
data(nullptr)
|
||||
{}
|
||||
~FileData()
|
||||
{
|
||||
delete data;
|
||||
delete [] data;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user