We can make simple code & prevent possible memory leak by using smart pointer.
Created attachment 196672 [details] Patch
Comment on attachment 196672 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=196672&action=review > Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.cpp:286 > + int width = std::max(static_cast<int>(ceilf(clutter_actor_get_width(actor))), 1); > + int height = std::max(static_cast<int>(ceilf(clutter_actor_get_height(actor))), 1); fwiw, I'm not sure this size or 1 is required with ClutterCanvas, might be worth checking.
Comment on attachment 196672 [details] Patch Clearing flags on attachment: 196672 Committed r148202: <http://trac.webkit.org/changeset/148202>
All reviewed patches have been landed. Closing bug.