File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 
src/library/grDevices/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11/* 
22 *  R : A Computer Language for Statistical Data Analysis 
3-  *  Copyright (C) 2004--2024   The R Core Team 
3+  *  Copyright (C) 2004--2025   The R Core Team 
44 *  Copyright (C) 1995, 1996  Robert Gentleman and Ross Ihaka 
55 *  Copyright (C) 1998--2003  Guido Masarotto and Brian Ripley 
66 *  Copyright (C) 2004        The R Foundation 
@@ -2287,6 +2287,9 @@ static void GA_Close(pDevDesc dd)
22872287 */ 
22882288    /* I think the concern is rather to run all pending events on the 
22892289       device (but also on the console and others) */ 
2290+     /* doevent() is called here to run the graphapp destructor for the 
2291+        window object before freeing the device-specific information; the 
2292+        destructor may need the information */ 
22902293    doevent ();
22912294    free (xd );
22922295    dd -> deviceSpecific  =  NULL ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments