# HG changeset patch # User rubidium # Date 2013-11-22 21:42:20 # Node ID 3f36dc1d96add09459a29a5bfaff3bcb126837c0 # Parent ac8069eb1768a92ce8942d98388289d78b38876c (svn r26048) -Fix: use delete instead of free when allocated by new diff --git a/src/story_gui.cpp b/src/story_gui.cpp --- 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; }