mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
23abd8d5fb
Sometimes, at least on Linux, DMDFuncs::sSingleton's static initializer (in libxul) was being called before sDMDBridge's (in libdmd). Thus sDMDBridge wasn't constructed yet in the path where its address is taken, passed down through {replace_,}get_bridge to ReplaceMallocBridge::Get, and its mVersion field is read. This patch uses dynamic allocation, following what's done for other globals in the same situation in this file. Also, naming convention fix: leading "s" is for C++ class statics; C-style static globals should be "g". |
||
---|---|---|
.. | ||
build | ||
fallible | ||
jemalloc | ||
mozalloc | ||
mozjemalloc | ||
replace | ||
volatile | ||
moz.build |