While playing with http://browserbench.org/MotionMark I discovered a few leaks, as well as some drawing errors. This patch corrects a number of problems found while running the benchmark.
Created attachment 292301 [details] Patch
Committed in r207681. <https://trac.webkit.org/changeset/207681>.
Comment on attachment 292301 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=292301&action=review > Source/WebCore/platform/graphics/win/GradientDirect2D.cpp:72 > + if (m_gradient) { > + m_gradient->Release(); > + m_gradient = nullptr; > + } Can we use smart pointers? > Source/WebCore/platform/graphics/win/PathDirect2D.cpp:74 > + if (m_path) > + m_path->Release(); Can we use a smart pointer?