}
l = (fontlist_t*)rfx_calloc(sizeof(fontlist_t));
l->font = font;
+ l->id = strdup(fontid);
l->next = 0;
if(last) {
last->next = l;
i->font = 0;
i->fontid = 0;
while(l) {
- if(!strcmp((char*)l->id, i->fontid)) {
+ if(!strcmp((char*)l->id, fontid)) {
i->font = l->font;
i->fontid = l->id;
break;
res->destroy = render_result_destroy;
free(dev->internal); dev->internal = 0; i = 0;
+
+ /* TODO: free fonts */
+
return res;
}