]>
code.delx.au - gnu-emacs/blob - oldXMenu/XDestAssoc.c
1 /* Copyright Massachusetts Institute of Technology 1985 */
2 /* Copyright (C) 2001, 2002, 2003, 2004, 2005,
3 2006, 2007 Free Software Foundation, Inc. */
12 * XDestroyAssocTable - Destroy (free the memory associated with)
15 XDestroyAssocTable(table
)
16 register XAssocTable
*table
;
19 register XAssoc
*bucket
;
20 register XAssoc
*Entry
, *entry_next
;
22 /* Free the buckets. */
23 for (i
= 0; i
< table
->size
; i
++) {
24 bucket
= &table
->buckets
[i
];
30 entry_next
= Entry
->next
;
35 /* Free the bucket array. */
36 free((char *)table
->buckets
);
42 /* arch-tag: a536bf02-8d63-45f2-8c1a-c7f9fd4da2cf
43 (do not change this comment) */