diff options
author | jenglish <jenglish@flightlab.com> | 2009-02-09 01:45:45 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2009-02-09 01:45:45 (GMT) |
commit | 469c326d047ae0d60d8da25d61a997bef8d3d749 (patch) | |
tree | ec0bae89264b8913a3f30c9c5801cb969400664e /generic/ttk/ttkLayout.c | |
parent | a7f3e6b8652f5d9ea2c4db8a47c14033cb559466 (diff) | |
download | tk-469c326d047ae0d60d8da25d61a997bef8d3d749.zip tk-469c326d047ae0d60d8da25d61a997bef8d3d749.tar.gz tk-469c326d047ae0d60d8da25d61a997bef8d3d749.tar.bz2 |
ElementStateEventProc: Avoid dangling pointers when layout changes
[Fix for #2431428].
Diffstat (limited to 'generic/ttk/ttkLayout.c')
-rw-r--r-- | generic/ttk/ttkLayout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/ttk/ttkLayout.c b/generic/ttk/ttkLayout.c index 7eaf927..7e8ad96 100644 --- a/generic/ttk/ttkLayout.c +++ b/generic/ttk/ttkLayout.c @@ -5,7 +5,7 @@ * * Copyright (c) 2003 Joe English. Freely redistributable. * - * $Id: ttkLayout.c,v 1.15 2009/02/08 19:35:35 jenglish Exp $ + * $Id: ttkLayout.c,v 1.16 2009/02/09 01:45:46 jenglish Exp $ */ #include <string.h> @@ -532,7 +532,7 @@ static Ttk_LayoutNode *Ttk_NewLayoutNode( node->eclass = elementClass; node->state = 0u; node->next = node->child = 0; - /* parcel uninitialized */ + node->parcel = Ttk_MakeBox(0,0,0,0); return node; } |