summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-12-16 18:18:58 +0000
committerfrosch <frosch@openttd.org>2013-12-16 18:18:58 +0000
commit3d53c0f7b960c241eba38d1ef67e48be556c4f98 (patch)
treeb6ad907707b827fcd9b5d332f68ad121e6b42524 /src
parente5957200859eed4f0401297b0eb02ef6d27c4be4 (diff)
downloadopenttd-3d53c0f7b960c241eba38d1ef67e48be556c4f98.tar.xz
(svn r26161) -Fix [FS#5830] (r22567) (r25956-ish): Backup data of altered persistent storage arrays was freed twice.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_storage.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/newgrf_storage.h b/src/newgrf_storage.h
index 528d4ff3c..cdbb041b4 100644
--- a/src/newgrf_storage.h
+++ b/src/newgrf_storage.h
@@ -198,14 +198,6 @@ struct PersistentStorage : PersistentStorageArray<int32, 16>, PersistentStorageP
/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
PersistentStorage(const uint32 new_grfid) : grfid(new_grfid)
{
- this->prev_storage = NULL;
- memset(this->storage, 0, sizeof(this->storage));
- }
-
- /** Free the memory used by the persistent storage. */
- ~PersistentStorage()
- {
- free(this->prev_storage);
}
};