Fix crash caused by a9a0d0fb15

This commit is contained in:
Guilherme Felipe 2019-07-24 14:57:59 -03:00
parent adae2b0738
commit c3f69c6c76
3 changed files with 3 additions and 0 deletions

View File

@ -1599,6 +1599,7 @@ void OS_OSX::finalize() {
memdelete(joypad_osx);
memdelete(input);
cursors_cache.clear();
visual_server->finish();
memdelete(visual_server);
//memdelete(rasterizer);

View File

@ -1537,6 +1537,7 @@ void OS_Windows::finalize() {
memdelete(camera_server);
touch_state.clear();
cursors_cache.clear();
visual_server->finish();
memdelete(visual_server);
#ifdef OPENGL_ENABLED

View File

@ -788,6 +788,7 @@ void OS_X11::finalize() {
memdelete(camera_server);
cursors_cache.clear();
visual_server->finish();
memdelete(visual_server);
//memdelete(rasterizer);