diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/morpher/morphing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/morpher/morphing.c b/src/morpher/morphing.c index 2ab22d0..f6e9387 100644 --- a/src/morpher/morphing.c +++ b/src/morpher/morphing.c | |||
@@ -1,4 +1,5 @@ | |||
1 | #include "morpher/morphing.h" | 1 | #include "morpher/morphing.h" |
2 | #include <malloc.h> | ||
2 | #include "common/mem.h" | 3 | #include "common/mem.h" |
3 | 4 | ||
4 | static inline TriangleMap *init_trianglemap(IntVector width, IntVector height) { | 5 | static inline TriangleMap *init_trianglemap(IntVector width, IntVector height) { |
@@ -34,6 +35,7 @@ Morphing *morphing_create(IntVector width, IntVector height) { | |||
34 | 35 | ||
35 | void morphing_destroy(Morphing *m) { | 36 | void morphing_destroy(Morphing *m) { |
36 | while (m->first != NULL) m->first = trianglemap_destroy(m->first); | 37 | while (m->first != NULL) m->first = trianglemap_destroy(m->first); |
38 | free(m); | ||
37 | } | 39 | } |
38 | 40 | ||
39 | void morphing_add_constraint(Morphing *m, CartesianVector origin, CartesianVector destination) { | 41 | void morphing_add_constraint(Morphing *m, CartesianVector origin, CartesianVector destination) { |