/*
* ion/de/colour.h
*
- * Copyright (c) Tuomo Valkonen 1999-2006.
+ * Copyright (c) Tuomo Valkonen 1999-2008.
*
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
*/
#include <ioncore/common.h>
XFreeColors(ioncore_g.dpy, rootwin->default_cmap, pixels, 5, 0);
- if(cg->spec!=NULL){
- free(cg->spec);
- cg->spec=NULL;
- }
+ gr_stylespec_unalloc(&cg->spec);
}