Fix compilation error related to using nonexistent sk_malloc instead of sk_malloc_thr...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 14 Sep 2011 14:01:31 +0000 (14:01 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 14 Sep 2011 14:01:31 +0000 (14:01 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@2266 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkTArray.h

index 7d74b6a..975aeed 100644 (file)
@@ -85,7 +85,7 @@ public:
         fCount              = array.count();
         fReserveCount       = gMIN_ALLOC_COUNT;
         fAllocCount         = SkMax32(fReserveCount, fCount);
-        fMemArray           = sk_malloc(sizeof(T) * fAllocCount);
+        fMemArray           = sk_malloc_throw(sizeof(T) * fAllocCount);
         fPreAllocMemArray   = NULL;
 
         if (DATA_TYPE) {
@@ -107,7 +107,7 @@ public:
         fCount              = count;
         fReserveCount       = gMIN_ALLOC_COUNT;
         fAllocCount         = SkMax32(fReserveCount, fCount);
-        fMemArray           = sk_malloc(sizeof(T) * fAllocCount);
+        fMemArray           = sk_malloc_throw(sizeof(T) * fAllocCount);
         fPreAllocMemArray   = NULL;
         if (DATA_TYPE) {
             memcpy(fMemArray, array, sizeof(T) * fCount);