Index: src/core/SkRegion.cpp |
diff --git a/src/core/SkRegion.cpp b/src/core/SkRegion.cpp |
index 05ba4f46a2b842473035c77ace24e0b9b5bc2b05..b87fbc87b8c45ddaf14bd7cb8bfaeeabcf296bbf 100644 |
--- a/src/core/SkRegion.cpp |
+++ b/src/core/SkRegion.cpp |
@@ -193,7 +193,7 @@ char* SkRegion::toString() { |
} |
// 4 ints, up to 10 digits each plus sign, 3 commas, '(', ')', SkRegion() and '\0' |
const int max = (count*((11*4)+5))+11+1; |
- char* result = (char*)malloc(max); |
+ char* result = (char*)sk_malloc_throw(max); |
if (result == NULL) { |
return NULL; |
} |