src/server/config/mimeconf.c

changeset 576
5c31cc844c68
parent 556
b036ccad4b49
child 579
e10457d74fe1
--- a/src/server/config/mimeconf.c	Fri Jan 31 21:01:48 2025 +0100
+++ b/src/server/config/mimeconf.c	Fri Jan 31 21:27:54 2025 +0100
@@ -63,13 +63,13 @@
 }
 
 void free_mime_config(MimeConfig *conf) {
-    cxMempoolDestroy(conf->parser.mp->data); // TODO: is there a better way to access the mempool?
+    cxMempoolDestroy(conf->parser.a->data); // TODO: is there a better way to access the mempool?
     free(conf);
 }
 
 int mimeconf_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) {
     MimeConfig *conf = p;
-    CxAllocator *mp = conf->parser.mp;
+    CxAllocator *mp = conf->parser.a;
     
     // parse mime directive
     MimeDirective *dir = OBJ_NEW_N(mp, MimeDirective);

mercurial