mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-08-06 05:26:58 +00:00
#375: M1233101
This commit is contained in:
@@ -291,7 +291,7 @@ static inline char* js_strdup(const char* s)
|
||||
QUALIFIERS T * \
|
||||
NEWNAME(Args&&... args) MOZ_HEAP_ALLOCATOR { \
|
||||
void* memory = ALLOCATOR(sizeof(T)); \
|
||||
return memory \
|
||||
return MOZ_LIKELY(memory) \
|
||||
? new(memory) T(mozilla::Forward<Args>(args)...) \
|
||||
: nullptr; \
|
||||
}
|
||||
|
Reference in New Issue
Block a user