X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxtools.c;h=2527675f87f44981883c57ff5f10f1fee3363d59;hp=12717ea1a1acf1bf7e532d416c0f5fb602a137a7;hb=5e60b81690ac5883abe4f68b61814b8764604fd1;hpb=944d0b42a196bd412c12c6c06fd0e4f301d4a1c7 diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 12717ea..2527675 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -1137,6 +1137,15 @@ gfxline_t* gfxline_reverse(gfxline_t*line) return b; } +void gfxgradient_destroy(gfxgradient_t*gradient) +{ + while(gradient) { + gfxgradient_t*next = gradient->next; + free(gradient); + gradient = next; + } +} + gfxparams_t* gfxparams_new() { return (gfxparams_t*)rfx_calloc(sizeof(gfxparams_t));