]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Remove another pointless null check, this time of inst->back in the
authorSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:14 +0000 (17:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:14 +0000 (17:24 +0000)
function which has just dereferenced it to get the exit code.

[originally from svn r9907]

unix/gtkwin.c

index f403a80796dcb568997c9a52d40ff433f2f15616..eb8db5686d439695a3a3903b641869de3d1aa123 100644 (file)
@@ -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);
     }