rawmidi: use snd_dlobj_cache_get2() in rawmidi open (coverity)

Use proper reference counting for the dynamic symbol.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-05-24 20:31:24 +02:00
parent 3ae743efea
commit 8ab0393b42
4 changed files with 57 additions and 32 deletions

View file

@ -37,7 +37,7 @@ typedef struct {
} snd_rawmidi_ops_t;
struct _snd_rawmidi {
void *dl_handle;
void *open_func;
char *name;
snd_rawmidi_type_t type;
snd_rawmidi_stream_t stream;