diff options
author | rubidium <rubidium@openttd.org> | 2013-11-22 21:42:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-22 21:42:20 +0000 |
commit | 830a49692d3eef1192c22170002108a8751ba1df (patch) | |
tree | b9c5630b7e18c00efe3920cd621821749b611fbe | |
parent | ed4e14dc205bead9b4b9c2666397eb8f9c599dd9 (diff) | |
download | openttd-830a49692d3eef1192c22170002108a8751ba1df.tar.xz |
(svn r26048) -Fix: use delete instead of free when allocated by new
-rw-r--r-- | src/story_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp index df1a04975..d7856add1 100644 --- a/src/story_gui.cpp +++ b/src/story_gui.cpp @@ -252,7 +252,7 @@ protected: /* Check if list is empty. */ if (list->size() == 0) { - free(list); + delete list; list = NULL; } |