Index: src/pathops/SkPathWriter.cpp |
diff --git a/src/pathops/SkPathWriter.cpp b/src/pathops/SkPathWriter.cpp |
index 2c3391bb44c521a615f36fd42de766be335bc28f..1f6dddd137f03a1cfc289880b7a074b88bf41be4 100644 |
--- a/src/pathops/SkPathWriter.cpp |
+++ b/src/pathops/SkPathWriter.cpp |
@@ -81,6 +81,9 @@ void SkPathWriter::deferredMove(const SkOpPtT* pt) { |
void SkPathWriter::finishContour() { |
if (!this->matchedLast(fDefer[0])) { |
+ if (!fDefer[1]) { |
+ return; |
+ } |
this->lineTo(); |
} |
if (fCurrent.isEmpty()) { |