comparison src/gccache-gtk.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 2923009caf47
children 91d4c8c65a0f
comparison
equal deleted inserted replaced
1725:7ff8f4d70aec 1726:a8d8f419b459
143 rest = cache->head; 143 rest = cache->head;
144 while (rest) 144 while (rest)
145 { 145 {
146 gdk_gc_destroy(rest->gc); 146 gdk_gc_destroy(rest->gc);
147 next = rest->next; 147 next = rest->next;
148 xfree (rest); 148 xfree (rest, struct gc_cache_cell *);
149 rest = next; 149 rest = next;
150 } 150 }
151 #ifdef GCCACHE_HASH 151 #ifdef GCCACHE_HASH
152 free_hash_table (cache->table); 152 free_hash_table (cache->table);
153 #endif 153 #endif
154 xfree (cache); 154 xfree (cache, struct gc_cache *);
155 } 155 }
156 156
157 GdkGC * 157 GdkGC *
158 gc_cache_lookup (struct gc_cache *cache, GdkGCValues *gcv, GdkGCValuesMask mask) 158 gc_cache_lookup (struct gc_cache *cache, GdkGCValues *gcv, GdkGCValuesMask mask)
159 { 159 {