Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: tools/skiaserve/skiaserve.cpp

Issue 1659703004: fix skiaserve crash (Closed) Base URL: https://skia.googlesource.com/skia.git@skiaserve-8-advancedurlparsing
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/skiaserve.cpp
diff --git a/tools/skiaserve/skiaserve.cpp b/tools/skiaserve/skiaserve.cpp
index 6b93429764a56328873f6d8c0fb80776d918cf62..409809b91bc43e32c7515611c2e792fb0014f876 100644
--- a/tools/skiaserve/skiaserve.cpp
+++ b/tools/skiaserve/skiaserve.cpp
@@ -210,6 +210,7 @@ public:
SkData* data = request->fPNG.get();
return SendData(connection, data, "image/png");
}
+
return MHD_NO;
}
};
@@ -257,6 +258,10 @@ public:
return MHD_YES;
}
+ // clear upload context
+ delete request->fUploadContext;
+ request->fUploadContext = nullptr;
+
return SendTemplate(connection, true, "/");
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698