diff options
author | pacien | 2017-12-26 18:48:42 +0100 |
---|---|---|
committer | pacien | 2017-12-26 18:48:42 +0100 |
commit | facf2d3b8fcce3407b456330221de9840d308447 (patch) | |
tree | f58af184d140881fd59b19c57b1a13c4392983d9 | |
parent | 2f74af6a1069b9d662676e3d2cbbc671a67574b5 (diff) | |
download | morpher-facf2d3b8fcce3407b456330221de9840d308447.tar.gz |
Add missing free
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-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) { |