mirror of https://github.com/ericonr/sndio.git
handle leak
This commit is contained in:
parent
4049ff3f12
commit
b50207563c
|
@ -80,6 +80,8 @@ KeySym *inc_map, *dec_map;
|
||||||
int
|
int
|
||||||
midi_connect(void)
|
midi_connect(void)
|
||||||
{
|
{
|
||||||
|
if (hdl != NULL)
|
||||||
|
return;
|
||||||
hdl = mio_open(port, MIO_IN | MIO_OUT, 0);
|
hdl = mio_open(port, MIO_IN | MIO_OUT, 0);
|
||||||
if (hdl == NULL) {
|
if (hdl == NULL) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
|
Loading…
Reference in New Issue