Previous 15994 Revisions Next

r3198 Sunday 7th September, 2008 at 11:50:44 UTC by Nathan Woods
Fixed some crashes involving astring deletion introduced yesterday
[src/mess]image.c

src/mess/image.c
r3197r3198
290290         /* unload this image */
291291         image_unload_internal(slot);
292292
293         /* free the working directory */
294         if (slot->working_directory != NULL)
295         {
296            free(slot->working_directory);
297            slot->working_directory = NULL;
298         }
299
300293         /* free the memory pool */
301294         pool_free(slot->mempool);
302295         slot->mempool = NULL;
r3197r3198
943936      image->file = NULL;
944937   }
945938
939   astring_cpyc(image->name, "");
940
946941   pool_clear(image->mempool);
947942   image->writeable = 0;
948943   image->created = 0;
949   image->name = NULL;
950944   image->dir = NULL;
951945   image->hash = NULL;
952946   image->longname = NULL;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team