From 3d53c0f7b960c241eba38d1ef67e48be556c4f98 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 16 Dec 2013 18:18:58 +0000 Subject: (svn r26161) -Fix [FS#5830] (r22567) (r25956-ish): Backup data of altered persistent storage arrays was freed twice. --- src/newgrf_storage.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') 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, 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); } }; -- cgit v1.2.3-70-g09d2