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:
@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user