src/font.c

changeset 76
eb16be99b0ad
parent 67
0b96fe6d6b5e
equal deleted inserted replaced
75:0ce353485509 76:eb16be99b0ad
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);

mercurial