diff --git a/lib/web_ui/skwasm/surface.cpp b/lib/web_ui/skwasm/surface.cpp index 7567335f3f81a..e91d343a50428 100644 --- a/lib/web_ui/skwasm/surface.cpp +++ b/lib/web_ui/skwasm/surface.cpp @@ -259,8 +259,8 @@ SKWASM_EXPORT void surface_renderPicturesOnWorker(Surface* surface, uint32_t callbackId, double rasterStart) { // This will release the pictures when they leave scope. - std::unique_ptr> picturesPointer = - std::unique_ptr>(pictures); + std::unique_ptr[]> picturesPointer = + std::unique_ptr[]>(pictures); surface->renderPicturesOnWorker(pictures, pictureCount, callbackId, rasterStart); }