so it wont leak because ob uses a hash for colors, but lets free the colors anyway
Mikael Magnusson mikachu@comhem.se
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
render/gradient.c
→
render/gradient.c
@@ -419,6 +419,9 @@
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)