~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SHA-256 implementation, for use in future KEX algorithms, in particular
[sgt/putty]
/
macosx
/
osxwin.m
diff --git
a/macosx/osxwin.m
b/macosx/osxwin.m
index
f0ebee4
..
f3cba03
100644
(file)
--- a/
macosx/osxwin.m
+++ b/
macosx/osxwin.m
@@
-313,14
+313,16
@@
* Do so.
*/
sfree(alert_ctx);
* 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);
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];
}
[super dealloc];
}
@@
-911,6
+913,13
@@
void ldisc_update(void *frontend, int echo, int edit)
*/
}
*/
}
+char *get_ttymode(void *frontend, const char *mode)
+{
+ SessionWindow *win = (SessionWindow *)ctx;
+ Terminal *term = [win term];
+ return term_get_ttymode(term, mode);
+}
+
void update_specials_menu(void *frontend)
{
//SessionWindow *win = (SessionWindow *)frontend;
void update_specials_menu(void *frontend)
{
//SessionWindow *win = (SessionWindow *)frontend;