解决websdk内存泄漏问题

This commit is contained in:
luoliangyi 2023-03-20 12:32:12 +08:00
parent 8a391f2c2f
commit 6ffd8a9feb
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,8 @@ namespace ver_2
{
WSCmdParam* param = (WSCmdParam*)msg->data;
param->svr->Command(param);
delete[] param->data;
param->size = 0;
delete param;
}
break;
@ -141,6 +143,8 @@ namespace ver_2
{
WSEvtParam* param = (WSEvtParam*)msg->data;
param->svr->Event(param);
delete[] param->data;
param->size = 0;
delete param;
}
break;