(JACK) Try to prevent memory leak

This commit is contained in:
twinaphex 2016-09-22 20:45:24 +02:00
parent f8d51c2f86
commit 97df8ce2fa

View File

@ -228,6 +228,8 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency)
return jd;
error:
for (i = 0; i < parsed; i++)
free(dest_ports[i]);
if (jports != NULL)
jack_free(jports);
free(jd);