Clean up GSM context on channel close.

This commit is contained in:
Armin Novak 2018-02-19 13:05:53 +01:00
parent c27600528e
commit 3b67190d17

View File

@ -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;