summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-22 21:42:20 +0000
committerrubidium <rubidium@openttd.org>2013-11-22 21:42:20 +0000
commit830a49692d3eef1192c22170002108a8751ba1df (patch)
treeb9c5630b7e18c00efe3920cd621821749b611fbe /src
parented4e14dc205bead9b4b9c2666397eb8f9c599dd9 (diff)
downloadopenttd-830a49692d3eef1192c22170002108a8751ba1df.tar.xz
(svn r26048) -Fix: use delete instead of free when allocated by new
Diffstat (limited to 'src')
-rw-r--r--src/story_gui.cpp2
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;
}