Skip to content

Commit

Permalink
Clean up GSM context on channel close.
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed Feb 19, 2018
1 parent c276005 commit 3b67190
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions channels/rdpsnd/client/pulse/rdpsnd_pulse.c
Expand Up @@ -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;

Expand Down

0 comments on commit 3b67190

Please sign in to comment.