orders: Fix OFFSCREEN_DELETE_LIST allocation size
authorOndrej Holy <oholy@redhat.com>
Tue, 5 Sep 2017 07:56:00 +0000 (09:56 +0200)
committerOndrej Holy <oholy@redhat.com>
Thu, 7 Sep 2017 07:38:44 +0000 (09:38 +0200)
commit9cccd4888d080fc5570ec11abcc1eea53c06f579
tree773480297a3f7e47c5489981b7f9b58ff9d4af01
parent048e7f264b9e5e4d0d6e2df5c5337fe17eafd48e
orders: Fix OFFSCREEN_DELETE_LIST allocation size

The size of OFFSCREEN_DELETE_LIST list allocation was incorrectly changed
by commit 99b1481 and consequently fixed incorrectly by commit 8a0fe086.
Let's count the allocation size based on new size and not based on current
size in order to prevent some memory issues.

https://github.com/FreeRDP/FreeRDP/issues/4117
libfreerdp/core/orders.c