| Index: third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
|
| diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
|
| index acc04a0fac8bdfdb3ca8389942ab33289b85c013..d26173ba821f8e762bdbf5c9acc1e49ad6c293c0 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
|
| +++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
|
| @@ -53,6 +53,7 @@ class MIDIAccess final : public RefCountedGarbageCollectedEventTargetWithInlineD
|
| REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess);
|
| DEFINE_WRAPPERTYPEINFO();
|
| USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
|
| + USING_PRE_FINALIZER(MIDIAccess, dispose);
|
| public:
|
| static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* executionContext)
|
| {
|
| @@ -99,11 +100,11 @@ public:
|
| // Eager finalization needed to promptly release m_accessor. Otherwise
|
| // its client back reference could end up being unsafely used during
|
| // the lazy sweeping phase.
|
| - EAGERLY_FINALIZE();
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| MIDIAccess(PassOwnPtr<MIDIAccessor>, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>&, ExecutionContext*);
|
| + void dispose();
|
|
|
| OwnPtr<MIDIAccessor> m_accessor;
|
| bool m_sysexEnabled;
|
|
|