Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
add technically required (no-op) g_spawn_close_pid
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jun 22, 2015
1 parent cccc779 commit 91bdd0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions termite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,13 @@ void launch_browser(char *browser, char *url) {
return;
}

g_spawn_async(nullptr, browser_cmd, nullptr, G_SPAWN_SEARCH_PATH,
nullptr, nullptr, nullptr, &error);
if (error) {
GPid child_pid;
if (!g_spawn_async(nullptr, browser_cmd, nullptr, G_SPAWN_SEARCH_PATH,
nullptr, nullptr, &child_pid, &error)) {
g_printerr("error launching '%s': %s\n", browser, error->message);
g_error_free(error);
}
g_spawn_close_pid(child_pid);
}

static void set_size_hints(GtkWindow *window, int char_width, int char_height) {
Expand Down

0 comments on commit 91bdd0d

Please sign in to comment.