aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkTLList.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-09-21 13:41:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-21 13:41:04 -0700
commit55fb4f3fdaa301c1c251259fedff4ab0b958c23b (patch)
treeaef58428c6f2a75dcba036d50a3bded0d475aad8 /src/core/SkTLList.h
parent064488a4114e1021f76b7129cf1e0d52994c5a54 (diff)
SkTLList throw on sk_malloc fail
Diffstat (limited to 'src/core/SkTLList.h')
-rw-r--r--src/core/SkTLList.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkTLList.h b/src/core/SkTLList.h
index ac7f0fa2ab..05755f5958 100644
--- a/src/core/SkTLList.h
+++ b/src/core/SkTLList.h
@@ -247,7 +247,7 @@ private:
fFreeList.remove(node);
++node->fBlock->fNodesInUse;
} else {
- Block* block = reinterpret_cast<Block*>(sk_malloc_flags(this->blockSize(), 0));
+ Block* block = reinterpret_cast<Block*>(sk_malloc_throw(this->blockSize()));
node = &block->fNodes[0];
new (node) Node;
node->fBlock = block;