]> git.decadent.org.uk Git - ion3.git/blobdiff - de/colour.c
Imported Upstream version 20090110
[ion3.git] / de / colour.c
index c3797c35f3cb302a93c2070ca094dcc93140a394..5bd2d609308be8a5d88a608632882b863c4dba5c 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/de/colour.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2006
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
- * 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>
@@ -56,10 +53,7 @@ void de_free_colour_group(WRootWin *rootwin, DEColourGroup *cg)
     
     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);
 }