]> git.decadent.org.uk Git - ion3.git/blobdiff - de/colour.c
[svn-upgrade] Integrating new upstream version, ion3 (20070203)
[ion3.git] / de / colour.c
index c3797c35f3cb302a93c2070ca094dcc93140a394..5693d81a94948ff570238d3de6f228cc4e98e733 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ion/de/colour.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2006
+ * Copyright (c) Tuomo Valkonen 1999-2007
  *
  * 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
@@ -56,10 +56,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);
 }