From 704b2390795373c19fb083fbd64e90edcff93771 Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 22 Mar 2004 16:04:42 +0000 Subject: Corrected docs to no longer use malloc/free. [Bug 920695] FossilOrigin-Name: a4ed7a7a05e0dc3afb8650747cb796a87cc53832 --- ChangeLog | 5 +++++ doc/ConfigWidg.3 | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbd4a74..0181074 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-22 Donal K. Fellows + + * doc/ConfigWidg.3: Converted malloc/free to Tcl_Alloc/Tcl_Free to + help avoid confusion and crashes on Windows. [Bug 920695] + 2004-03-20 Jim Ingham * macosx/tkMacOSXSubwindows.c (GenerateConfigureNotify): New diff --git a/doc/ConfigWidg.3 b/doc/ConfigWidg.3 index 51c2f7e..21405ec 100644 --- a/doc/ConfigWidg.3 +++ b/doc/ConfigWidg.3 @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: ConfigWidg.3,v 1.9 2003/10/06 22:20:22 dgp Exp $ +'\" RCS: @(#) $Id: ConfigWidg.3,v 1.10 2004/03/22 16:04:51 dkf Exp $ '\" .so man.macros .TH Tk_ConfigureWidget 3 4.1 Tk "Tk Library Procedures" @@ -312,12 +312,12 @@ is stored in the target. \fBTK_CONFIG_STRING\fR A copy of the value is made by allocating memory space with -\fBmalloc\fR and copying the value into the dynamically-allocated +\fBTcl_Alloc\fR and copying the value into the dynamically-allocated space. A pointer to the new string is stored in the target. If TK_CONFIG_NULL_OK is specified in \fIspecFlags\fR then the value may be an empty string, in which case the target will be set to NULL. If the previous value of the target wasn't NULL, then it is -freed by passing it to \fBfree\fR. +freed by passing it to \fBTcl_Free\fR. .TP \fBTK_CONFIG_SYNONYM\fR This \fItype\fR value identifies special entries in \fIspecs\fR that -- cgit v0.12