From 69017a5f3c5822ded82b1f02e2371306150fdecf Mon Sep 17 00:00:00 2001 From: Anthony Tong Date: Mon, 27 Feb 2012 12:12:17 -0500 Subject: [PATCH] rdpsnd: follow rdpdr and free the stream from svc_plugin --- channels/rdpsnd/rdpsnd_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channels/rdpsnd/rdpsnd_main.c b/channels/rdpsnd/rdpsnd_main.c index 48b545531..2d9fe27de 100644 --- a/channels/rdpsnd/rdpsnd_main.c +++ b/channels/rdpsnd/rdpsnd_main.c @@ -395,6 +395,7 @@ static void rdpsnd_process_receive(rdpSvcPlugin* plugin, STREAM* data_in) if (rdpsnd->expectingWave) { rdpsnd_process_message_wave(rdpsnd, data_in); + stream_free(data_in); return; } @@ -425,6 +426,8 @@ static void rdpsnd_process_receive(rdpSvcPlugin* plugin, STREAM* data_in) DEBUG_WARN("unknown msgType %d", msgType); break; } + + stream_free(data_in); } static void rdpsnd_register_device_plugin(rdpsndPlugin* rdpsnd, rdpsndDevicePlugin* device)