GUACAMOLE-847: Fix severe memory leak when using audio with RDP
This commit is contained in:
parent
b4ef38c064
commit
87a5479ff8
@ -110,12 +110,11 @@ void guac_rdpsnd_process_receive(rdpSvcPlugin* plugin,
|
||||
* If next PDU is SNDWAVE (due to receiving WaveInfo PDU previously),
|
||||
* ignore the header and parse as a Wave PDU.
|
||||
*/
|
||||
if (rdpsnd->next_pdu_is_wave) {
|
||||
if (rdpsnd->next_pdu_is_wave)
|
||||
guac_rdpsnd_wave_handler(rdpsnd, input_stream, &header);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Dispatch message to standard handlers */
|
||||
else {
|
||||
switch (header.message_type) {
|
||||
|
||||
/* Server Audio Formats and Version PDU */
|
||||
@ -139,6 +138,8 @@ void guac_rdpsnd_process_receive(rdpSvcPlugin* plugin,
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Stream_Free(input_stream, TRUE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user