]> Dogcows Code - chaz/openbox/commitdiff
so it wont leak because ob uses a hash for colors, but lets free the colors anyway
authorMikael Magnusson <mikachu@comhem.se>
Wed, 14 Jun 2006 19:47:28 +0000 (19:47 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 14 Jun 2006 19:47:28 +0000 (19:47 +0000)
render/gradient.c

index b64cb5ec509d2c659318c3f9c326105364f4d474..9f245743b1bfceefbcece5c68e7be26bc7d92566 100644 (file)
@@ -419,6 +419,9 @@ static void gradient_split(RrAppearance *a, gint w, gint h)
     current = COLOR(y3);
     for (x = w - 1; x >= 0; --x)  /* 0 -> w */
         *(data++) = current;
+
+    RrColorFree(primary_light);
+    RrColorFree(secondary_light);
 }
 
 static void gradient_horizontal(RrSurface *sf, gint w, gint h)
This page took 0.024384 seconds and 4 git commands to generate.