Index: Source/modules/webmidi/MIDIAccessInitializer.h |
diff --git a/Source/modules/webmidi/MIDIAccessInitializer.h b/Source/modules/webmidi/MIDIAccessInitializer.h |
index 6221b617fd4b3644fff0e2e320b7339d6a8bf5c6..8824e76de760ea218ce9121725e403376859da66 100644 |
--- a/Source/modules/webmidi/MIDIAccessInitializer.h |
+++ b/Source/modules/webmidi/MIDIAccessInitializer.h |
@@ -20,7 +20,6 @@ class MIDIOptions; |
class ScriptState; |
class MODULES_EXPORT MIDIAccessInitializer : public ScriptPromiseResolver, public MIDIAccessorClient { |
- WILL_BE_USING_PRE_FINALIZER(MIDIAccessInitializer, dispose); |
public: |
struct PortDescriptor { |
String id; |
@@ -49,6 +48,10 @@ public: |
~MIDIAccessInitializer() override; |
+ // Eager finalization to allow dispose() operation access |
+ // other (non eager) heap objects. |
+ EAGERLY_FINALIZE(); |
+ |
// MIDIAccessorClient |
void didAddInputPort(const String& id, const String& manufacturer, const String& name, const String& version, MIDIAccessor::MIDIPortState) override; |
void didAddOutputPort(const String& id, const String& manufacturer, const String& name, const String& version, MIDIAccessor::MIDIPortState) override; |