Sound: don't leak memory

This commit is contained in:
李通洲 committed 2023-01-26 00:36:45 +08:00
1 parent aa36a83182
commit f2dd288a0d
1 file changed
+6
+6
View File
@@ -65,4 +65,10 @@ void ffPrintSound(FFinstance* instance)
printDevice(instance, device, 0);
}
}
FF_LIST_FOR_EACH(FFSoundDevice, device, result)
{
ffStrbufDestroy(&device->name);
ffStrbufDestroy(&device->manufacturer);
}
}