Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1058)

Unified Diff: media/midi/midi_manager_alsa.cc

Issue 517363002: Fix a memory leak in MidiManagerAlsa initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_alsa.cc
diff --git a/media/midi/midi_manager_alsa.cc b/media/midi/midi_manager_alsa.cc
index a21f8919d37f75fad03cceda590a7a52826d8b28..492573b13de4c42fe3d679dc3bad521d1b42af5d 100644
--- a/media/midi/midi_manager_alsa.cc
+++ b/media/midi/midi_manager_alsa.cc
@@ -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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698