diff options
author | halcanary <halcanary@google.com> | 2015-09-21 13:41:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-21 13:41:04 -0700 |
commit | 55fb4f3fdaa301c1c251259fedff4ab0b958c23b (patch) | |
tree | aef58428c6f2a75dcba036d50a3bded0d475aad8 /src/core/SkTLList.h | |
parent | 064488a4114e1021f76b7129cf1e0d52994c5a54 (diff) |
SkTLList throw on sk_malloc fail
BUG=530758
Review URL: https://codereview.chromium.org/1345373006
Diffstat (limited to 'src/core/SkTLList.h')
-rw-r--r-- | src/core/SkTLList.h | 2 |
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; |