forked from mirror/OpenTTD
(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. */
|
/* Check if list is empty. */
|
||||||
if (list->size() == 0) {
|
if (list->size() == 0) {
|
||||||
free(list);
|
delete list;
|
||||||
list = NULL;
|
list = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user