summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-12 13:00:29 +0000
committerrubidium <rubidium@openttd.org>2011-11-12 13:00:29 +0000
commit7fd1e1df81c3ed45e176f1bbf46d873b6cff316e (patch)
tree8f2ad83400a7897a066ff4f500bd0cdd150c1b93 /src/script
parentd61b90ac6fb63ee42f47ca53cacd5aa7d7b30bae (diff)
downloadopenttd-7fd1e1df81c3ed45e176f1bbf46d873b6cff316e.tar.xz
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script_info.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/script/script_info.cpp b/src/script/script_info.cpp
index dc21e26f2..a01456130 100644
--- a/src/script/script_info.cpp
+++ b/src/script/script_info.cpp
@@ -23,13 +23,13 @@ static const int MAX_CREATEINSTANCE_OPS = 100000;
ScriptFileInfo::~ScriptFileInfo()
{
- free((void *)this->author);
- free((void *)this->name);
- free((void *)this->short_name);
- free((void *)this->description);
- free((void *)this->date);
- free((void *)this->instance_name);
- free((void *)this->url);
+ free(this->author);
+ free(this->name);
+ free(this->short_name);
+ free(this->description);
+ free(this->date);
+ free(this->instance_name);
+ free(this->url);
free(this->main_script);
free(this->tar_file);
free(this->SQ_instance);