Fixed use after free.

This commit is contained in:
Armin Novak 2019-10-03 16:15:52 +02:00
parent 9a33a82fb7
commit 69dbd45d4e
1 changed files with 3 additions and 2 deletions

View File

@ -61,11 +61,12 @@ int main(int argc, char* argv[])
if (status)
{
if (settings->ListMonitors)
BOOL list = settings->ListMonitors;
if (list)
xf_list_monitors(xfc);
freerdp_client_context_free(context);
if (settings->ListMonitors)
if (list)
return 0;
return status;
}