src/properties.c

changeset 1318
12fa1d37fe48
parent 1193
cfa44f3f5e3b
child 1319
aa1f580f8f59
--- a/src/properties.c	Thu May 15 15:43:30 2025 +0200
+++ b/src/properties.c	Thu May 15 16:02:54 2025 +0200
@@ -287,7 +287,7 @@
         cx_attr_unused CxProperties *prop,
         CxPropertiesSource *src
 ) {
-    src->data_ptr = malloc(src->data_size);
+    src->data_ptr = cxMalloc(cxDefaultAllocator, src->data_size);
     if (src->data_ptr == NULL) return 1;
     return 0;
 }
@@ -296,7 +296,7 @@
         cx_attr_unused CxProperties *prop,
         CxPropertiesSource *src
 ) {
-    free(src->data_ptr);
+    cxFree(cxDefaultAllocator, src->data_ptr);
 }
 
 CxPropertiesSource cxPropertiesStringSource(cxstring str) {

mercurial