diff options
author | Andrey Kaydalov <[email protected]> | 2020-02-12 00:55:11 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-02 17:51:42 +0100 |
commit | de8961da7ddc21766ee1c7cb95ca1b6e6335dda2 (patch) | |
tree | 6c34f199932da14b60c7a08febf74cb28ef4a791 /src | |
parent | 658eb5e2b1cbb19e36621a74a39df2e2e19f62de (diff) | |
download | mate-terminal-de8961da7ddc21766ee1c7cb95ca1b6e6335dda2.tar.bz2 mate-terminal-de8961da7ddc21766ee1c7cb95ca1b6e6335dda2.tar.xz |
terminal-screen: prevent crash on bad term spawn due to redundant frees
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal-screen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c index 3433c09..eb6e614 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -1531,8 +1531,6 @@ static void handle_error_child (TerminalScreen *screen, info_bar, FALSE, FALSE, 0); gtk_info_bar_set_default_response (GTK_INFO_BAR (info_bar), GTK_RESPONSE_CANCEL); gtk_widget_show (info_bar); - - g_error_free (err); } static void term_spawn_callback (GtkWidget *terminal, @@ -1545,7 +1543,6 @@ static void term_spawn_callback (GtkWidget *terminal, if (error) { handle_error_child (screen, error); - g_error_free (error); } else { |