1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Fix segfault on forcible window closure.

[originally from svn r5402]
This commit is contained in:
Simon Tatham
2005-02-26 15:13:13 +00:00
parent fe8114d90b
commit ce802e55dd
2 changed files with 9 additions and 8 deletions

View File

@ -313,14 +313,16 @@
* Do so.
*/
sfree(alert_ctx);
if (term)
term_free(term);
if (logctx)
log_free(logctx);
if (back)
back->free(backhandle);
if (ldisc)
ldisc_free(ldisc);
/* ldisc must be freed before term, since ldisc_free expects term
* still to be around. */
if (logctx)
log_free(logctx);
if (term)
term_free(term);
[super dealloc];
}