| 658:7290604d846d | 659:07b815faa6ac |
|---|---|
| 65 | 65 |
| 66 return conf; | 66 return conf; |
| 67 } | 67 } |
| 68 | 68 |
| 69 void free_mime_config(MimeConfig *conf) { | 69 void free_mime_config(MimeConfig *conf) { |
| 70 cxMempoolFree(conf->parser.a->data); // TODO: is there a better way to access the mempool? | 70 cxMempoolFree(conf->parser.mp); |
| 71 free(conf); | 71 free(conf); |
| 72 } | 72 } |
| 73 | 73 |
| 74 int mimeconf_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) { | 74 int mimeconf_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) { |
| 75 MimeConfig *conf = p; | 75 MimeConfig *conf = p; |