Skip to content

Commit 33c7de8

Browse files
author
kalibera
committed
Avoid nested message loop on Windows, potentially causing a crash by
cleaning up data structures still in use. git-svn-id: https://svn.r-project.org/R/trunk@88371 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent fd4a0c4 commit 33c7de8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/grDevices/src/devWindows.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ static void SetFont(pGEcontext gc, double rot, gadesc *xd)
685685
if (size != xd->fontsize || face != xd->fontface ||
686686
rot != xd->fontangle || strcmp(gc->fontfamily, xd->fontfamily)) {
687687
if(xd->font) del(xd->font);
688-
doevent();
688+
/* do not call doevent(); here, as it could cause destruction
689+
of the device specific information and a crash below */
689690
/*
690691
* If specify family = "", get family from face via Rdevga
691692
*

0 commit comments

Comments
 (0)