mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r26048) -Fix: use delete instead of free when allocated by new
This commit is contained in:
parent
ed4e14dc20
commit
830a49692d
@ -252,7 +252,7 @@ protected:
|
||||
|
||||
/* Check if list is empty. */
|
||||
if (list->size() == 0) {
|
||||
free(list);
|
||||
delete list;
|
||||
list = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user