Index: Source/modules/webmidi/MIDIAccessInitializer.cpp |
diff --git a/Source/modules/webmidi/MIDIAccessInitializer.cpp b/Source/modules/webmidi/MIDIAccessInitializer.cpp |
index 300f8ebd042bb0bf681999647c415a2f01291c9b..36d4b00cfd07e27b9eaeafeb009bca442a3078a4 100644 |
--- a/Source/modules/webmidi/MIDIAccessInitializer.cpp |
+++ b/Source/modules/webmidi/MIDIAccessInitializer.cpp |
@@ -21,6 +21,9 @@ MIDIAccessInitializer::MIDIAccessInitializer(ScriptState* scriptState, const MID |
: ScriptPromiseResolver(scriptState) |
, m_requestSysex(false) |
{ |
+#if ENABLE(OILPAN) |
+ ThreadState::current()->registerPreFinalizer(*this); |
+#endif |
if (options.hasSysex()) |
m_requestSysex = options.sysex(); |
} |