Index: tools/skiaserve/urlhandlers/BreakHandler.cpp |
diff --git a/tools/skiaserve/urlhandlers/BreakHandler.cpp b/tools/skiaserve/urlhandlers/BreakHandler.cpp |
index 7766adb021c5de880ed987b11f751cb05540b4b2..f4f741fe3495943c1a04b3eff46cafd9a0ecd0dc 100644 |
--- a/tools/skiaserve/urlhandlers/BreakHandler.cpp |
+++ b/tools/skiaserve/urlhandlers/BreakHandler.cpp |
@@ -80,6 +80,5 @@ int BreakHandler::handle(Request* request, MHD_Connection* connection, |
canvas->restoreToCount(saveCount); |
SkDynamicMemoryWStream stream; |
stream.writeText(Json::FastWriter().write(response).c_str()); |
- sk_sp<SkData> data(stream.copyToData()); |
- return SendData(connection, data.get(), "application/json"); |
+ return SendData(connection, stream.detachAsData().get(), "application/json"); |
} |