Commit 673572dd authored by sudarsana.nagineni's avatar sudarsana.nagineni Committed by Commit bot

Fix a memory leak in MidiManagerAlsa initialization.

Call snd_ctl_close() to free all the resources allocated with
the control handle.

BUG=409016

Review URL: https://codereview.chromium.org/517363002

Cr-Commit-Position: refs/heads/master@{#292875}
parent 8d2d9254
......@@ -184,6 +184,7 @@ void MidiManagerAlsa::StartInitialization() {
const std::string driver = snd_ctl_card_info_get_driver(card);
cards.push_back(new CardInfo(name, manufacturer, driver));
}
snd_ctl_close(handle);
}
// Enumerate all ports in all clients.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment