71 cxDefineDestructor(asc_font_cache, asc_font_unload); |
71 cxDefineDestructor(asc_font_cache, asc_font_unload); |
72 } |
72 } |
73 |
73 |
74 void asc_font_cache_destroy(void) { |
74 void asc_font_cache_destroy(void) { |
75 assert(asc_font_cache != NULL); |
75 assert(asc_font_cache != NULL); |
76 cxListDestroy(asc_font_cache); |
76 cxListFree(asc_font_cache); |
77 } |
77 } |
78 |
78 |
79 |
79 |
80 TTF_Font *asc_font_load(AscFont font) { |
80 TTF_Font *asc_font_load(AscFont font) { |
81 CxIterator iter = cxListIterator(asc_font_cache); |
81 CxIterator iter = cxListIterator(asc_font_cache); |