Mercurial > vim
comparison src/misc2.c @ 17708:10696f279e20 v8.1.1851
patch 8.1.1851: crash when sound_playfile() callback plays sound
commit https://github.com/vim/vim/commit/28e67e0c1496b7bb166a0acfb176690f219101ca
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 15 23:05:49 2019 +0200
patch 8.1.1851: crash when sound_playfile() callback plays sound
Problem: Crash when sound_playfile() callback plays sound.
Solution: Invoke callback later from event loop.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Aug 2019 23:15:04 +0200 |
parents | 9efb4dda9720 |
children | 844f470532b6 |
comparison
equal
deleted
inserted
replaced
17707:bf211be8ffd1 | 17708:10696f279e20 |
---|---|
4484 continue; | 4484 continue; |
4485 # endif | 4485 # endif |
4486 # ifdef FEAT_TERMINAL | 4486 # ifdef FEAT_TERMINAL |
4487 free_unused_terminals(); | 4487 free_unused_terminals(); |
4488 # endif | 4488 # endif |
4489 # ifdef FEAT_SOUND_CANBERRA | |
4490 if (has_sound_callback_in_queue()) | |
4491 invoke_sound_callback(); | |
4492 # endif | |
4489 break; | 4493 break; |
4490 } | 4494 } |
4491 | 4495 |
4492 may_garbage_collect = save_may_garbage_collect; | 4496 may_garbage_collect = save_may_garbage_collect; |
4493 | 4497 |