From 3920c570dd384bae15911234e187478d898aa9eb Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 15 Oct 2018 16:33:56 +0200 Subject: [PATCH] Fixed memory leak with audio formats. --- channels/rdpsnd/client/rdpsnd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/rdpsnd/client/rdpsnd_main.c b/channels/rdpsnd/client/rdpsnd_main.c index 33ac176..2afd564 100644 --- a/channels/rdpsnd/client/rdpsnd_main.c +++ b/channels/rdpsnd/client/rdpsnd_main.c @@ -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); -- 2.7.4