Fixed memory leak with audio formats.

This commit is contained in:
Armin Novak 2018-10-15 16:33:56 +02:00
parent e5d60370b4
commit 3920c570dd

View File

@ -1197,7 +1197,7 @@ static void rdpsnd_virtual_channel_event_terminated(rdpsndPlugin* rdpsnd)
{
if (rdpsnd)
{
audio_format_free(rdpsnd->fixed_format);
audio_formats_free(rdpsnd->fixed_format, 1);
free(rdpsnd->subsystem);
free(rdpsnd->device_name);
CloseHandle(rdpsnd->stopEvent);