mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
14 lines
248 B
C
14 lines
248 B
C
|
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);
|
||
|
}
|