mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-05 07:43:58 +08:00
Fixed surface bits command cleanup.
This commit is contained in:
parent
4e66972616
commit
f19a17d3ed
@ -44,7 +44,6 @@
|
||||
#include "../cache/cache.h"
|
||||
|
||||
#define TAG FREERDP_TAG("core.message")
|
||||
#define WITH_STREAM_POOL 1
|
||||
|
||||
/* Update */
|
||||
|
||||
@ -1553,15 +1552,8 @@ static BOOL update_message_free_update_class(wMessage* msg, int type)
|
||||
|
||||
case Update_SurfaceBits:
|
||||
{
|
||||
#ifdef WITH_STREAM_POOL
|
||||
rdpContext* context = (rdpContext*) msg->context;
|
||||
SURFACE_BITS_COMMAND* wParam = (SURFACE_BITS_COMMAND*) msg->wParam;
|
||||
StreamPool_Release(context->rdp->transport->ReceivePool, wParam->bmp.bitmapData);
|
||||
#else
|
||||
SURFACE_BITS_COMMAND* wParam = (SURFACE_BITS_COMMAND*) msg->wParam;
|
||||
free(wParam->bmp.bitmapData);
|
||||
free(wParam);
|
||||
#endif
|
||||
free_surface_bits_command(context, wParam);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user