fix memory leak on update->window->monitored_desktop.windowIds which is realloced at update_read_desktop_actively_monitored_order()

This commit is contained in:
weizhenwei 2017-06-09 14:39:38 +08:00
parent 873bb26f2e
commit 63c81517b7

View File

@ -2139,6 +2139,11 @@ void update_free(rdpUpdate* update)
free(update->primary); free(update->primary);
free(update->secondary); free(update->secondary);
free(update->altsec); free(update->altsec);
if (update->window->monitored_desktop.windowIds)
{
free(update->window->monitored_desktop.windowIds);
update->window->monitored_desktop.windowIds = NULL;
}
free(update->window); free(update->window);
MessageQueue_Free(update->queue); MessageQueue_Free(update->queue);
free(update); free(update);