1
0
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:
rubidium
2013-11-22 21:42:20 +00:00
parent ed4e14dc20
commit 830a49692d

View File

@@ -252,7 +252,7 @@ protected:
/* Check if list is empty. */
if (list->size() == 0) {
free(list);
delete list;
list = NULL;
}