[[ RefactorGraphics ]] fix memory leak in MCGraphicsContext::setgradient() and potential leak in libgraphics MCGGradientCreate