summaryrefslogtreecommitdiff
path: root/archive/st/patch/sixel_x.c
blob: 0f74f533b0cc30d164655908a51020349200285a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void
delete_image(ImageList *im)
{
	if (im->prev)
		im->prev->next = im->next;
	else
		term.images = im->next;
	if (im->next)
		im->next->prev = im->prev;
	if (im->pixmap)
		XFreePixmap(xw.dpy, (Drawable)im->pixmap);
	free(im->pixels);
	free(im);
}