mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added missing snd_dlclose() calls
This commit is contained in:
parent
358d1998b7
commit
0d7d11889d
10 changed files with 44 additions and 4 deletions
|
|
@ -256,11 +256,13 @@ static int snd_rawmidi_open_conf(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp
|
|||
if (err < 0)
|
||||
return err;
|
||||
if (inputp) {
|
||||
(*inputp)->dl_handle = h; h = NULL;
|
||||
snd_rawmidi_params_default(*inputp, ¶ms);
|
||||
err = snd_rawmidi_params(*inputp, ¶ms);
|
||||
assert(err >= 0);
|
||||
}
|
||||
if (outputp) {
|
||||
(*outputp)->dl_handle = h;
|
||||
snd_rawmidi_params_default(*outputp, ¶ms);
|
||||
err = snd_rawmidi_params(*outputp, ¶ms);
|
||||
assert(err >= 0);
|
||||
|
|
@ -340,6 +342,8 @@ int snd_rawmidi_close(snd_rawmidi_t *rawmidi)
|
|||
return err;
|
||||
if (rawmidi->name)
|
||||
free(rawmidi->name);
|
||||
if (rawmidi->dl_handle)
|
||||
snd_dlclose(rawmidi->dl_handle);
|
||||
free(rawmidi);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue