diff options
-rw-r--r-- | media/midi/midi_manager_win.cc | 7 | ||||
-rw-r--r-- | media/midi/midi_manager_win.h | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/media/midi/midi_manager_win.cc b/media/midi/midi_manager_win.cc index a911ff6..5937278 100644 --- a/media/midi/midi_manager_win.cc +++ b/media/midi/midi_manager_win.cc @@ -1093,6 +1093,13 @@ class MidiServiceWinImpl : public MidiServiceWin, } // namespace +MidiManagerWin::MidiManagerWin() { +} + +MidiManagerWin::~MidiManagerWin() { + midi_service_.reset(); +} + void MidiManagerWin::StartInitialization() { midi_service_.reset(new MidiServiceWinImpl); // Note that |CompleteInitialization()| will be called from the callback. diff --git a/media/midi/midi_manager_win.h b/media/midi/midi_manager_win.h index 73c1fe5..eef70eb 100644 --- a/media/midi/midi_manager_win.h +++ b/media/midi/midi_manager_win.h @@ -41,8 +41,8 @@ class MidiServiceWin { class MidiManagerWin final : public MidiManager, public MidiServiceWinDelegate { public: - MidiManagerWin() {} - ~MidiManagerWin() override { midi_service_.reset(); } + MidiManagerWin(); + ~MidiManagerWin() override; // MidiManager overrides: void StartInitialization() final; |