summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples')
-rw-r--r--misc/examples/rawptr_elements.c2
-rw-r--r--misc/examples/shape.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/rawptr_elements.c b/misc/examples/rawptr_elements.c
index 05910c77..96a9ba86 100644
--- a/misc/examples/rawptr_elements.c
+++ b/misc/examples/rawptr_elements.c
@@ -13,7 +13,7 @@ typedef int64_t inttype;
#define i_valfrom(raw) c_NEW(inttype, raw)
#define i_valto(x) **x
#define i_valclone(x) c_NEW(inttype, *x)
-#define i_valdrop(x) c_FREE(*x)
+#define i_valdrop(x) c_free(*x)
#include <stc/cmap.h>
// With cbox:
diff --git a/misc/examples/shape.c b/misc/examples/shape.c
index 75a5e174..9ce0b946 100644
--- a/misc/examples/shape.c
+++ b/misc/examples/shape.c
@@ -38,7 +38,7 @@ void Shape_delete(Shape* shape)
{
if (shape) {
shape->api->drop(shape);
- c_FREE(shape);
+ c_free(shape);
}
}