so it wont leak because ob uses a hash for colors, but lets free the colors anyway

This commit is contained in:
Mikael Magnusson 2006-06-14 19:47:28 +00:00
parent 7ca93b9ff2
commit b3fa579a61

View 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)