mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Properly initialized mSaveDepth in JSAutoSuspendRequest, r=sayrer.
This commit is contained in:
parent
3c106c861e
commit
c6eb5d4c06
@ -455,7 +455,7 @@ class JSAutoRequest {
|
||||
|
||||
class JSAutoSuspendRequest {
|
||||
public:
|
||||
JSAutoSuspendRequest(JSContext *cx) : mContext(cx) {
|
||||
JSAutoSuspendRequest(JSContext *cx) : mContext(cx), mSaveDepth(0) {
|
||||
if (mContext) {
|
||||
mSaveDepth = JS_SuspendRequest(mContext);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user