Use delete with new instead of free.
This commit is contained in:
parent
79d5c7c344
commit
2308356ddb
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ void CleanCursors()
|
|||
{
|
||||
for (std::vector<CCursor*>::iterator i = AllCursors.begin(); i != AllCursors.end(); ++i) {
|
||||
CGraphic::Free((**i).G);
|
||||
free(*i);
|
||||
delete *i;
|
||||
}
|
||||
AllCursors.clear();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue