static void destroy_packet(SimplyMsg *self, SimplyPacket *packet) { if (!packet) { return; } list1_remove(&self->queue, &packet->node); free(packet->buffer); packet->buffer = NULL; free(packet); }
static void destroy_font(SimplyRes *self, SimplyFont *font) { if (!font) { return; } list1_remove(&self->fonts, &font->node); fonts_unload_custom_font(font->font); free(font); }
static void destroy_image(SimplyRes *self, SimplyImage *image) { if (!image) { return; } list1_remove(&self->images, &image->node); gbitmap_destroy(image->bitmap); free(image->palette); }
static void destroy_image(SimplyRes *self, SimplyImage *image) { list1_remove(&self->images, &image->node); free(image->bitmap.addr); free(image); }