mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
The direct link between the terminal and the back end via
term_provide_resize_fn() was not being broken when the back end was destroyed on session termination, causing resizing an inactive PuTTY to be a segfault hazard. [originally from svn r7143]
This commit is contained in:
@ -1722,7 +1722,7 @@ void term_provide_resize_fn(Terminal *term,
|
||||
{
|
||||
term->resize_fn = resize_fn;
|
||||
term->resize_ctx = resize_ctx;
|
||||
if (term->cols > 0 && term->rows > 0)
|
||||
if (resize_fn && term->cols > 0 && term->rows > 0)
|
||||
resize_fn(resize_ctx, term->cols, term->rows);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user