mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(JACK) Try to prevent memory leak
This commit is contained in:
parent
f8d51c2f86
commit
97df8ce2fa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user