Merge pull request #30799 from guilhermefelipecgs/fix_30795

Fix crash when using custom cursor
This commit is contained in:
Rémi Verschelde 2019-07-25 07:21:44 +02:00 committed by GitHub
commit eb300ba8fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);