Sound: fix a memleak

This commit is contained in:
Carter Li
2025-01-13 15:39:16 +08:00
parent 8982b860f9
commit dbcd5b922a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -105,6 +105,7 @@ void ffPrintSound(FFSoundOptions* options)
{
ffStrbufDestroy(&device->identifier);
ffStrbufDestroy(&device->name);
ffStrbufDestroy(&device->platformApi);
}
}
@@ -226,6 +227,7 @@ void ffGenerateSoundJsonResult(FF_MAYBE_UNUSED FFSoundOptions* options, yyjson_m
{
ffStrbufDestroy(&device->identifier);
ffStrbufDestroy(&device->name);
ffStrbufDestroy(&device->platformApi);
}
}