From 3b67190d17bc8e3353216139174378cdc6d28a67 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 19 Feb 2018 13:05:53 +0100 Subject: [PATCH] Clean up GSM context on channel close. --- channels/rdpsnd/client/pulse/rdpsnd_pulse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channels/rdpsnd/client/pulse/rdpsnd_pulse.c b/channels/rdpsnd/client/pulse/rdpsnd_pulse.c index 2f93c64436a2..879ce5227460 100644 --- a/channels/rdpsnd/client/pulse/rdpsnd_pulse.c +++ b/channels/rdpsnd/client/pulse/rdpsnd_pulse.c @@ -191,6 +191,11 @@ static void rdpsnd_pulse_close(rdpsndDevicePlugin* device) { rdpsndPulsePlugin* pulse = (rdpsndPulsePlugin*) device; +#ifdef WITH_GSM + if (pulse->gsm_context) + gsm_destroy(pulse->gsm_context); +#endif + if (!pulse->context || !pulse->stream) return;