so it wont leak because ob uses a hash for colors, but lets free the colors anyway
This commit is contained in:
parent
7ca93b9ff2
commit
b3fa579a61
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue