summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-06-14 19:47:28 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-06-14 19:47:28 +0000
commitb3fa579a61b6259defa0cd718ab7047862cf506f (patch)
tree235379e3f7b636df593a0f3daba7a751c7c21486 /render
parent7ca93b9ff23239dc3076ac07e44a0d6ea2101266 (diff)
so it wont leak because ob uses a hash for colors, but lets free the colors anyway
Diffstat (limited to 'render')
-rw-r--r--render/gradient.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/render/gradient.c b/render/gradient.c
index b64cb5ec..9f245743 100644
--- a/render/gradient.c
+++ b/render/gradient.c
@@ -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)