core: free modifiers if allocated

This commit is contained in:
vaxerski 2023-10-10 01:12:16 +01:00
parent ff87a16b2b
commit ec31e99056

View file

@ -1078,6 +1078,9 @@ uint32_t CPipewireConnection::buildFormatsFor(spa_pod_builder* b[2], const spa_p
stream->pSession->sharingData.frameInfoSHM.h, stream->pSession->sharingData.framerate, NULL, 0);
}
if (modifiers)
free(modifiers);
return paramCount;
}