mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Add the ability to close sessions. This adds *_free() functions to most
areas of the code. Not all back-ends have been tested, but Telnet and SSH behave reasonably. Incidentally, almost all of this patch was written through Mac PuTTY, admittedly over a Telnet connection. [originally from svn r2615]
This commit is contained in:
11
mac/mac.c
11
mac/mac.c
@ -1,4 +1,4 @@
|
||||
/* $Id: mac.c,v 1.31 2003/01/15 22:37:58 ben Exp $ */
|
||||
/* $Id: mac.c,v 1.32 2003/01/15 23:30:21 ben Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1999 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -541,18 +541,15 @@ static void mac_closewindow(WindowPtr window) {
|
||||
CloseDeskAcc(((WindowPeek)window)->windowKind);
|
||||
break;
|
||||
case wTerminal:
|
||||
/* FIXME: end session and stuff */
|
||||
mac_closeterm(window);
|
||||
break;
|
||||
case wAbout:
|
||||
windows.about = NULL;
|
||||
CloseWindow(window);
|
||||
DisposeDialog(window);
|
||||
break;
|
||||
case wLicence:
|
||||
windows.licence = NULL;
|
||||
CloseWindow(window);
|
||||
break;
|
||||
default:
|
||||
CloseWindow(window);
|
||||
DisposeWindow(window);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user