handle leak

This commit is contained in:
Alexandre Ratchov 2014-02-06 12:25:32 +01:00
parent 4049ff3f12
commit b50207563c
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ KeySym *inc_map, *dec_map;
int
midi_connect(void)
{
if (hdl != NULL)
return;
hdl = mio_open(port, MIO_IN | MIO_OUT, 0);
if (hdl == NULL) {
if (verbose)