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