You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
248 B
14 lines
248 B
3 years ago
|
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);
|
||
|
}
|