# HG changeset patch # User Gerd Moellmann # Date 952027769 0 # Node ID 7634011b93f3519bf11b9a43b1ffeceb94f6a0ee # Parent 7d61ff2d1530d932772c5d79d6a31eea0947cf8b (free_glyphs): Block input while freeing matrices. diff -r 7d61ff2d1530 -r 7634011b93f3 src/dispnew.c --- a/src/dispnew.c Thu Mar 02 20:08:20 2000 +0000 +++ b/src/dispnew.c Thu Mar 02 20:09:29 2000 +0000 @@ -2170,6 +2170,9 @@ { if (f && f->glyphs_initialized_p) { + /* Block interrupt input so that we don't get surprised by an X + event while we're in an inconsistent state. */ + BLOCK_INPUT; f->glyphs_initialized_p = 0; /* Release window sub-matrices. */ @@ -2213,6 +2216,8 @@ free_glyph_pool (f->current_pool); f->desired_pool = f->current_pool = NULL; } + + UNBLOCK_INPUT; } }