Making sure it deletes the window
This commit is contained in:
		
					parent
					
						
							
								ee19b389b0
							
						
					
				
			
			
				commit
				
					
						ae3c7d496a
					
				
			
		
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -63,6 +63,7 @@ namespace gui_to_app {
 | 
				
			||||||
        auto windows = get_windows();
 | 
					        auto windows = get_windows();
 | 
				
			||||||
        for (auto *window: windows) {
 | 
					        for (auto *window: windows) {
 | 
				
			||||||
            window->set_visible(false);
 | 
					            window->set_visible(false);
 | 
				
			||||||
 | 
					            delete window;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        quit();
 | 
					        quit();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue