1 2 3 4 5 6 7 8 9 10 11
#include <err.h> #include <stdlib.h> #include "image.h" void cleanup_state_image (void *data) { image_state_t *state = (image_state_t*)data; free(state); }