diff options
author | rubidium <rubidium@openttd.org> | 2011-11-12 13:00:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-12 13:00:29 +0000 |
commit | 7fd1e1df81c3ed45e176f1bbf46d873b6cff316e (patch) | |
tree | 8f2ad83400a7897a066ff4f500bd0cdd150c1b93 /src/tar_type.h | |
parent | d61b90ac6fb63ee42f47ca53cacd5aa7d7b30bae (diff) | |
download | openttd-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/tar_type.h')
-rw-r--r-- | src/tar_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tar_type.h b/src/tar_type.h index 272ae5da4..dae1df05c 100644 --- a/src/tar_type.h +++ b/src/tar_type.h @@ -24,7 +24,7 @@ struct TarListEntry { * to free filename, which isn't set at that moment... but because it * initializes the variable with garbage, it's going to segfault. */ TarListEntry() : filename(NULL), dirname(NULL) {} - ~TarListEntry() { free((void*)this->filename); free((void*)this->dirname); } + ~TarListEntry() { free(this->filename); free(this->dirname); } }; struct TarFileListEntry { |