From: Simon Tatham Date: Thu, 11 Jul 2013 17:24:14 +0000 (+0000) Subject: Remove another pointless null check, this time of inst->back in the X-Git-Tag: 0.63~85 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=916cd3f0cd99d0fafc594fb21dfadc2512aa6700;p=PuTTY.git Remove another pointless null check, this time of inst->back in the function which has just dereferenced it to get the exit code. [originally from svn r9907] --- diff --git a/unix/gtkwin.c b/unix/gtkwin.c index f403a807..eb8db568 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -1379,13 +1379,11 @@ static gint idle_exit_func(gpointer data) ldisc_free(inst->ldisc); inst->ldisc = NULL; } - if (inst->back) { - inst->back->free(inst->backhandle); - inst->backhandle = NULL; - inst->back = NULL; - term_provide_resize_fn(inst->term, NULL, NULL); - update_specials_menu(inst); - } + inst->back->free(inst->backhandle); + inst->backhandle = NULL; + inst->back = NULL; + term_provide_resize_fn(inst->term, NULL, NULL); + update_specials_menu(inst); gtk_widget_set_sensitive(inst->restartitem, TRUE); }