From 4c835938a6d9c14fb14dbea95ed9bc7a150aa3f7 Mon Sep 17 00:00:00 2001 From: mdejong Date: Wed, 19 Jun 2002 20:40:54 +0000 Subject: * generic/tkClipboard.c (TkClipCleanup): Add code to set dispPtr->clipWindow to NULL, this was accidently removed by last commit. Fixes a crash while running the tests under win32. --- ChangeLog | 7 +++++++ generic/tkClipboard.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c9fc43b..8495b94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2002-06-19 Mo DeJong + * generic/tkClipboard.c (TkClipCleanup): Add code + to set dispPtr->clipWindow to NULL, this was + accidently removed by last commit. Fixes + a crash while running the tests under win32. + +2002-06-19 Mo DeJong + * generic/tkBind.c (TkBindDeadWindow): Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c index c43d621..83fb376 100644 --- a/generic/tkClipboard.c +++ b/generic/tkClipboard.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkClipboard.c,v 1.10 2002/06/19 19:37:54 mdejong Exp $ + * RCS: @(#) $Id: tkClipboard.c,v 1.11 2002/06/19 20:40:55 mdejong Exp $ */ #include "tkInt.h" @@ -652,6 +652,7 @@ TkClipCleanup(dispPtr) Tk_DestroyWindow(dispPtr->clipWindow); Tcl_Release((ClientData) dispPtr->clipWindow); + dispPtr->clipWindow = NULL; } } -- cgit v0.12