From 830a49692d3eef1192c22170002108a8751ba1df Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Nov 2013 21:42:20 +0000 Subject: [PATCH] (svn r26048) -Fix: use delete instead of free when allocated by new --- src/story_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/story_gui.cpp b/src/story_gui.cpp index df1a049752..d7856add13 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; }