memory leaks

fixed memory leaks. SVGKit is till leaking. disable global cache reveals more leaks