summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpacien2017-12-26 18:48:42 +0100
committerpacien2017-12-26 18:48:42 +0100
commitfacf2d3b8fcce3407b456330221de9840d308447 (patch)
treef58af184d140881fd59b19c57b1a13c4392983d9 /src
parent2f74af6a1069b9d662676e3d2cbbc671a67574b5 (diff)
downloadmorpher-facf2d3b8fcce3407b456330221de9840d308447.tar.gz
Add missing free
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'src')
-rw-r--r--src/morpher/morphing.c2
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
4static inline TriangleMap *init_trianglemap(IntVector width, IntVector height) { 5static inline TriangleMap *init_trianglemap(IntVector width, IntVector height) {
@@ -34,6 +35,7 @@ Morphing *morphing_create(IntVector width, IntVector height) {
34 35
35void morphing_destroy(Morphing *m) { 36void 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
39void morphing_add_constraint(Morphing *m, CartesianVector origin, CartesianVector destination) { 41void morphing_add_constraint(Morphing *m, CartesianVector origin, CartesianVector destination) {