rem: free(texture->spec); free(texture);
add: wfree(texture->spec); wfree(texture);
context: freeTexture(BackgroundTexture *texture){    if (texture->solid) {	long pixel[1];	pixel[0] = texture->color.pixel;	/* dont free black/white pixels */	if (pixel[0]!=BlackPixelOfScreen(DefaultScreenOfDisplay(dpy))	    && pixel[0]!=WhitePixelOfScreen(DefaultScreenOfDisplay(dpy)))	    XFreeColors(dpy, DefaultColormap(dpy, scr), pixel, 1, 0);    }    if (texture->pixmap) {	XFreePixmap(dpy, texture->pixmap);    }    free(texture->spec);    free(texture);}