Diff of /session.c [2c08a3] .. [0ad751] Maximize Restore

  Switch to side-by-side view

--- a/session.c
+++ b/session.c
@@ -103,6 +103,7 @@
 	TAILQ_INIT(&s->lastw);
 	RB_INIT(&s->windows);
 
+	hooks_init(&s->hooks, &global_hooks);
 	options_init(&s->options, &global_s_options);
 	environ_init(&s->environ);
 	if (env != NULL)
@@ -160,6 +161,7 @@
 	session_group_remove(s);
 	environ_free(&s->environ);
 	options_free(&s->options);
+	hooks_free(&s->hooks);
 
 	while (!TAILQ_EMPTY(&s->lastw))
 		winlink_stack_remove(&s->lastw, TAILQ_FIRST(&s->lastw));