From f8a03e16efd71ee8e4320b00a07f7d964168809c Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 29 Jun 2004 14:03:42 +0000 Subject: * win/tclWinInit.c: Corrected reference counting flaw in recent changes. Thanks to Pat Thoyts. [Bug 981893]. --- ChangeLog | 5 +++++ win/tclWinInit.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 50b81d5..02ea307 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-29 Don Porter + + * win/tclWinInit.c: Corrected reference counting flaw in + recent changes. Thanks to Pat Thoyts. [Bug 981893]. + 2004-06-29 Vince Darley * win/tclWin32Dll.c: fix to compilation with VC++ 5.2 diff --git a/win/tclWinInit.c b/win/tclWinInit.c index bae876e..9c1217c 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -7,7 +7,7 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclWinInit.c,v 1.57 2004/06/18 13:42:42 dkf Exp $ + * RCS: @(#) $Id: tclWinInit.c,v 1.58 2004/06/29 14:03:46 dgp Exp $ */ #include "tclWinInt.h" @@ -378,7 +378,7 @@ TclpInitLibraryPath(path) AppendDllPath(pathPtr, TclWinGetTclInstance(), installLib); Tcl_ListObjGetElements(NULL, pathPtr, &objc, &objv); - SetDefaultLibraryDir(objv[objc-1]); + SetDefaultLibraryDir(Tcl_DuplicateObj(objv[objc-1])); /* * Look for the library relative to the executable. This algorithm -- cgit v0.12