src/mess/image.c
| r3197 | r3198 | |
| 290 | 290 | /* unload this image */ |
| 291 | 291 | image_unload_internal(slot); |
| 292 | 292 | |
| 293 | | /* free the working directory */ |
| 294 | | if (slot->working_directory != NULL) |
| 295 | | { |
| 296 | | free(slot->working_directory); |
| 297 | | slot->working_directory = NULL; |
| 298 | | } |
| 299 | | |
| 300 | 293 | /* free the memory pool */ |
| 301 | 294 | pool_free(slot->mempool); |
| 302 | 295 | slot->mempool = NULL; |
| r3197 | r3198 | |
| 943 | 936 | image->file = NULL; |
| 944 | 937 | } |
| 945 | 938 | |
| 939 | astring_cpyc(image->name, ""); |
| 940 | |
| 946 | 941 | pool_clear(image->mempool); |
| 947 | 942 | image->writeable = 0; |
| 948 | 943 | image->created = 0; |
| 949 | | image->name = NULL; |
| 950 | 944 | image->dir = NULL; |
| 951 | 945 | image->hash = NULL; |
| 952 | 946 | image->longname = NULL; |