Clean up GSM context on channel close.
authorArmin Novak <armin.novak@thincast.com>
Mon, 19 Feb 2018 12:05:53 +0000 (13:05 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 19 Feb 2018 12:05:53 +0000 (13:05 +0100)
channels/rdpsnd/client/pulse/rdpsnd_pulse.c

index 2f93c64..879ce52 100644 (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;