| Index: Source/core/platform/audio/AudioArray.h
|
| diff --git a/Source/core/platform/audio/AudioArray.h b/Source/core/platform/audio/AudioArray.h
|
| index a70903b86a2f8ae2bd7a1440c7d4f9f3888ad876..f611a2b10ab61b186a58e537dbc73ce64639d5b9 100644
|
| --- a/Source/core/platform/audio/AudioArray.h
|
| +++ b/Source/core/platform/audio/AudioArray.h
|
| @@ -57,7 +57,7 @@ public:
|
| // and copyToRange(). Also check for integer overflow.
|
| if (n > std::numeric_limits<unsigned>::max() / sizeof(T))
|
| CRASH();
|
| -
|
| +
|
| unsigned initialSize = sizeof(T) * n;
|
|
|
| #if USE(WEBAUDIO_FFMPEG) || USE(WEBAUDIO_OPENMAX_DL_FFT)
|
| @@ -68,9 +68,9 @@ public:
|
|
|
| if (m_allocation)
|
| fastFree(m_allocation);
|
| -
|
| +
|
| bool isAllocationGood = false;
|
| -
|
| +
|
| while (!isAllocationGood) {
|
| // Initially we try to allocate the exact size, but if it's not aligned
|
| // then we'll have to reallocate and from then on allocate extra.
|
|
|