]> Dogcows Code - chaz/openbox/commitdiff
copy/free the new interlaced color
authorDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 03:34:24 +0000 (03:34 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 03:34:24 +0000 (03:34 +0000)
render/render.c

index 1351cb363e887cedf33d836d4c0e8b68db04d1c7..52b8cff25b67b2696a120e76e973121ae2b3f033 100644 (file)
@@ -189,6 +189,13 @@ RrAppearance *RrAppearanceCopy(RrAppearance *orig)
                                        spo->border_color->b);
     else spc->border_color = NULL;
 
+    if (spo->interlaced_color != NULL)
+        spc->interlaced_color = RrColorNew(copy->inst,
+                                       spo->interlaced_color->r,
+                                       spo->interlaced_color->g,
+                                       spo->interlaced_color->b);
+    else spc->interlaced_color = NULL;
+
     if (spo->bevel_dark != NULL)
         spc->bevel_dark = RrColorNew(copy->inst,
                                      spo->bevel_dark->r,
@@ -242,6 +249,7 @@ void RrAppearanceFree(RrAppearance *a)
         RrColorFree(p->primary);
         RrColorFree(p->secondary);
         RrColorFree(p->border_color);
+        RrColorFree(p->interlaced_color);
         RrColorFree(p->bevel_dark);
         RrColorFree(p->bevel_light);
         g_free(p->pixel_data);
This page took 0.021948 seconds and 4 git commands to generate.