Fix new/delete mismatch in SkBlockAllocatorTest
Resolves an issue found with mismatched-new-delete in newer GCC. Change-Id: Ifa7f133a16699d7f6a84f63b07ef4d5fde55dd32 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/468822 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
065c5d9408
commit
2660bfd2d8
@ -87,7 +87,8 @@ DEF_TEST(SkBlockAllocatorPreallocSize, r) {
|
||||
REPORTER_ASSERT(r, placement->preallocSize() == 1024);
|
||||
REPORTER_ASSERT(r, placement->preallocUsableSpace() < 1024 &&
|
||||
placement->preallocUsableSpace() >= (1024 - sizeof(SkBlockAllocator)));
|
||||
delete placement;
|
||||
placement->~SkBlockAllocator();
|
||||
operator delete(mem);
|
||||
|
||||
// Tests inline increased preallocation, option #3
|
||||
SkSBlockAllocator<2048> inlined{};
|
||||
|
Loading…
Reference in New Issue
Block a user