mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 928186: fix nuwa process crash due to LibcAllocator not allocating enough memory. r=khuey
This commit is contained in:
parent
1adfbb9aab
commit
14514506ea
@ -101,7 +101,7 @@ struct LibcAllocator: public std::allocator<T>
|
||||
allocate(typename std::allocator<T>::size_type n,
|
||||
const void * = 0)
|
||||
{
|
||||
return reinterpret_cast<T *>(mMallocImpl(n));
|
||||
return reinterpret_cast<T *>(mMallocImpl(sizeof(T) * n));
|
||||
}
|
||||
|
||||
inline void
|
||||
|
Loading…
Reference in New Issue
Block a user