Free gsmBuffer on channel close.
authorArmin Novak <armin.novak@thincast.com>
Mon, 19 Feb 2018 13:03:49 +0000 (14:03 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 19 Feb 2018 13:04:42 +0000 (14:04 +0100)
channels/rdpsnd/client/pulse/rdpsnd_pulse.c

index 879ce52..2191ec9 100644 (file)
@@ -369,6 +369,10 @@ static void rdpsnd_pulse_free(rdpsndDevicePlugin* device)
                pulse->mainloop = NULL;
        }
 
+#ifdef WITH_GSM
+       Stream_Free(pulse->gsmBuffer, TRUE);
+#endif
+
        free(pulse->device_name);
        freerdp_dsp_context_free(pulse->dsp_context);
        free(pulse);