| Index: media/midi/midi_manager_alsa.cc
|
| diff --git a/media/midi/midi_manager_alsa.cc b/media/midi/midi_manager_alsa.cc
|
| index a5caf8c3d1f8a15a252352a82ff030b9a22d5425..b83a17102f9b3b5de3b039f0696631fa2d964e21 100644
|
| --- a/media/midi/midi_manager_alsa.cc
|
| +++ b/media/midi/midi_manager_alsa.cc
|
| @@ -269,11 +269,11 @@ void MidiManagerAlsa::StartInitialization() {
|
| // initialize these earlier, since they need to be destroyed by the
|
| // thread that calls Finalize(), not the destructor thread (and we
|
| // check this in the destructor).
|
| - in_client_.reset(in_client.release());
|
| - out_client_.reset(out_client.release());
|
| - decoder_.reset(decoder.release());
|
| - udev_.reset(udev.release());
|
| - udev_monitor_.reset(udev_monitor.release());
|
| + in_client_ = std::move(in_client);
|
| + out_client_ = std::move(out_client);
|
| + decoder_ = std::move(decoder);
|
| + udev_ = std::move(udev);
|
| + udev_monitor_ = std::move(udev_monitor);
|
|
|
| // Generate hotplug events for existing ports.
|
| // TODO(agoode): Check the return value for failure.
|
|
|