comparison src/xgccache.c @ 1726:a8d8f419b459

[xemacs-hg @ 2003-09-30 15:26:34 by james] Add type information to xfree to avoid alias creation.
author james
date Tue, 30 Sep 2003 15:27:01 +0000
parents b39c14581166
children ecf1ebac70d8
comparison
equal deleted inserted replaced
1725:7ff8f4d70aec 1726:a8d8f419b459
141 rest = cache->head; 141 rest = cache->head;
142 while (rest) 142 while (rest)
143 { 143 {
144 XFreeGC (cache->dpy, rest->gc); 144 XFreeGC (cache->dpy, rest->gc);
145 next = rest->next; 145 next = rest->next;
146 xfree (rest); 146 xfree (rest, struct gc_cache_cell *);
147 rest = next; 147 rest = next;
148 } 148 }
149 #ifdef GCCACHE_HASH 149 #ifdef GCCACHE_HASH
150 free_hash_table (cache->table); 150 free_hash_table (cache->table);
151 #endif 151 #endif
152 xfree (cache); 152 xfree (cache, struct gc_cache *);
153 } 153 }
154 154
155 GC 155 GC
156 gc_cache_lookup (struct gc_cache *cache, XGCValues *gcv, unsigned long mask) 156 gc_cache_lookup (struct gc_cache *cache, XGCValues *gcv, unsigned long mask)
157 { 157 {