]> Dogcows Code - chaz/openbox/blobdiff - render/color.c
kill a warning
[chaz/openbox] / render / color.c
index d16bbf0cdd93b8e06cc2eee2664f2f6ea2fe5edf..37ef5532dd952b63cc8872e24ea611d2fc5af2b8 100644 (file)
@@ -59,6 +59,8 @@ RrColor *RrColorNew(const RrInstance *inst, gint r, gint g, gint b)
 void RrColorFree(RrColor *c)
 {
     if (c) {
+        if (c->pixel) XFreeColors(RrDisplay(c->inst), RrColormap(c->inst),
+                                  &c->pixel, 1, 0);
         if (c->gc) XFreeGC(RrDisplay(c->inst), c->gc);
         g_free(c);
     }
This page took 0.020108 seconds and 4 git commands to generate.