X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=de%2Fcolour.c;h=5bd2d609308be8a5d88a608632882b863c4dba5c;hb=bab1a29cb81b48fe5f1f79349db31363e52143c1;hp=c3797c35f3cb302a93c2070ca094dcc93140a394;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/de/colour.c b/de/colour.c index c3797c3..5bd2d60 100644 --- a/de/colour.c +++ b/de/colour.c @@ -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 @@ -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); }