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

src/mess/image.c
r7856r7857
17341734
17351735void image_freeptr(running_device *image, void *ptr)
17361736{
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);
17391740}
17401741
17411742

Previous 15994 Revisions Next


© 1998-2018 The MESS Team