Free clipboard respond to fix bug

Fixes #5997 (clipboard stops responding in the middle of a session)
This commit is contained in:
LatinSuD 2020-03-26 18:50:44 +01:00 committed by akallabeth
parent ca34fe4c12
commit a6ccd38b68

View File

@ -1413,6 +1413,8 @@ xf_cliprdr_server_format_data_response(CliprdrClientContext* context,
if (SrcSize == 0)
{
WLog_INFO(TAG, "skipping, empty data detected!!!");
free(clipboard->respond);
clipboard->respond = NULL;
return CHANNEL_RC_OK;
}