diff options
author | treectrl <treectrl> | 2006-11-03 18:54:41 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2006-11-03 18:54:41 (GMT) |
commit | 4def4e15ced3ef57e47a52f4dbf161aca8f503c6 (patch) | |
tree | 11f46e2b35cfc3e3f172bf98e98346982e13f36c /generic/tkTreeStyle.c | |
parent | 2ad5d4607104441914fff1defba66dc5dc832c9d (diff) | |
download | tktreectrl-4def4e15ced3ef57e47a52f4dbf161aca8f503c6.zip tktreectrl-4def4e15ced3ef57e47a52f4dbf161aca8f503c6.tar.gz tktreectrl-4def4e15ced3ef57e47a52f4dbf161aca8f503c6.tar.bz2 |
Fix compilation when ALLOC_HAX is undefined.
Diffstat (limited to 'generic/tkTreeStyle.c')
-rw-r--r-- | generic/tkTreeStyle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTreeStyle.c b/generic/tkTreeStyle.c index efc4580..2ee319f 100644 --- a/generic/tkTreeStyle.c +++ b/generic/tkTreeStyle.c @@ -5,7 +5,7 @@ * * Copyright (c) 2002-2006 Tim Baker * - * RCS: @(#) $Id: tkTreeStyle.c,v 1.56 2006/10/30 00:48:10 treectrl Exp $ + * RCS: @(#) $Id: tkTreeStyle.c,v 1.57 2006/11/03 18:54:41 treectrl Exp $ */ #include "tkTreeCtrl.h" @@ -3337,7 +3337,7 @@ MStyle_ChangeElementsAux( (char *) style->elements, sizeof(MElementLink), style->numElements, ELEMENT_LINK_ROUND); #else - WCFREE(style->mstyle.elements, MElementLink, style->numElements); + WCFREE(style->elements, MElementLink, style->numElements); #endif } @@ -6230,7 +6230,7 @@ TreeStyle_Remap( #else if (styleFromNumElements > 0) WCFREE(styleFrom->elements, IElementLink, styleFromNumElements); - styleFrom->elements = (ElementLink *) ckalloc(sizeof(IElementLink) * + styleFrom->elements = (IElementLink *) ckalloc(sizeof(IElementLink) * styleTo->numElements); #endif memset(styleFrom->elements, '\0', sizeof(IElementLink) * styleTo->numElements); |