| Previous | 15994 Revisions | Next |
| r7857 Sunday 18th April, 2010 at 13:12:56 UTC by Firewave |
|---|
| Use a proper deallocation function in image_freeptr(). Fixes assert on shutdown after an image load error |
| [src/mess] | image.c |
| r7856 | r7857 | |
|---|---|---|
| 1734 | 1734 | |
| 1735 | 1735 | void image_freeptr(running_device *image, void *ptr) |
| 1736 | 1736 | { |
| 1737 | /* should really do something better here */ | |
| 1738 | image_realloc(image, ptr, 0); | |
| 1737 | image_slot_data *slot = find_image_slot(image); | |
| 1738 | ||
| 1739 | pool_object_remove(slot->mempool, ptr, 0); | |
| 1739 | 1740 | } |
| 1740 | 1741 | |
| 1741 | 1742 |
| Previous | 15994 Revisions | Next |