Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 176992f441dc6f8c53a20373a51cb84e2d62ca9f..0e34be6db8266f9f5cd45d349d1e96fad4945cd2 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -153,6 +153,10 @@ SkPaint::~SkPaint() { |
} |
SkPaint& SkPaint::operator=(const SkPaint& src) { |
+ if (this == &src) { |
+ return *this; |
+ } |
+ |
#define COPY(field) field = src.field |
#define REF_COPY(field) SkSafeUnref(field); field = SkSafeRef(src.field) |