add technically required (no-op) g_spawn_close_pid
This commit is contained in:
		
							parent
							
								
									cccc77928a
								
							
						
					
					
						commit
						91bdd0dcbd
					
				@ -209,12 +209,13 @@ void launch_browser(char *browser, char *url) {
 | 
				
			|||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    g_spawn_async(nullptr, browser_cmd, nullptr, G_SPAWN_SEARCH_PATH,
 | 
					    GPid child_pid;
 | 
				
			||||||
                  nullptr, nullptr, nullptr, &error);
 | 
					    if (!g_spawn_async(nullptr, browser_cmd, nullptr, G_SPAWN_SEARCH_PATH,
 | 
				
			||||||
    if (error) {
 | 
					                       nullptr, nullptr, &child_pid, &error)) {
 | 
				
			||||||
        g_printerr("error launching '%s': %s\n", browser, error->message);
 | 
					        g_printerr("error launching '%s': %s\n", browser, error->message);
 | 
				
			||||||
        g_error_free(error);
 | 
					        g_error_free(error);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    g_spawn_close_pid(child_pid);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void set_size_hints(GtkWindow *window, int char_width, int char_height) {
 | 
					static void set_size_hints(GtkWindow *window, int char_width, int char_height) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user