[client] fix invalid shutdown of renderer outside of it's thread

This commit is contained in:
Geoffrey McRae 2019-08-30 11:36:28 +10:00
parent fce88fc72c
commit 69522495de
2 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
fetch-0-g163a2e5d0a+1
fetch-1-gfce88fc72c+1

View File

@ -156,6 +156,9 @@ static int renderThread(void * unused)
state.running = false;
SDL_WaitThread(t_cursor, NULL);
state.lgr->deinitialize(state.lgrData);
state.lgr = NULL;
return 0;
}
@ -1345,9 +1348,6 @@ int run()
spice_disconnect();
}
if (state.lgr)
state.lgr->deinitialize(state.lgrData);
if (state.lgc)
{
state.lgc->free();