fix linear gradients

transform of the gradients were not taken into account before.
memory leak fix
Merge branch 'master' of https://github.com/tsaizhenling/SVGKit into tsaizhenling-master