diff options
author | tmh <tmh@noemail.net> | 2001-10-12 13:30:30 (GMT) |
---|---|---|
committer | tmh <tmh@noemail.net> | 2001-10-12 13:30:30 (GMT) |
commit | 98831fa56af436da1a0006869b2dc077558299ea (patch) | |
tree | f0a41bc451b44d520db4074ba5b826c8c8d8b723 /win/tkWinWm.c | |
parent | 10dbcdd17f71c73d82b42e02b6b1ae24c0b930fd (diff) | |
download | tk-macosx-8-4-branchpoint.zip tk-macosx-8-4-branchpoint.tar.gz tk-macosx-8-4-branchpoint.tar.bz2 |
implementation of TIP 63 (accepted) -compound option to menu items.macosx-8-4-branchpoint
FossilOrigin-Name: 388b438b4b85a414ad930b3a685c74ce17276df1
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 421c139..b2041c5 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinWm.c,v 1.30 2001/09/21 20:38:35 hobbs Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.31 2001/10/12 13:30:32 tmh Exp $ */ #include "tkWinInt.h" @@ -766,7 +766,7 @@ InitWm(void) * *---------------------------------------------------------------------- */ -int +static int WinSetIcon(interp, titlebaricon, tkw) Tcl_Interp *interp; WinIconPtr titlebaricon; @@ -1091,10 +1091,12 @@ BlockOfIconImagesPtr ReadIconFromICOFile(Tcl_Interp* interp, char* fileName){ } if (Tcl_SetChannelOption(interp, channel, "-translation", "binary") != TCL_OK) { + Tcl_Close(NULL, channel); return NULL; } if (Tcl_SetChannelOption(interp, channel, "-encoding", "binary") != TCL_OK) { + Tcl_Close(NULL, channel); return NULL; } /* Allocate memory for the resource structure */ |