diff options
Diffstat (limited to 'src/templates.c')
-rw-r--r-- | src/templates.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/templates.c b/src/templates.c index 1bc47ff9..765d4324 100644 --- a/src/templates.c +++ b/src/templates.c @@ -354,5 +354,14 @@ void match_templates(struct image *image, IndexingPrivate *ipriv) priv->templates[max_i].omega, priv->templates[max_i].phi, rot_best); +} + + +void free_templates(IndexingPrivate *priv) +{ + struct _indexingprivate_template *tpriv + = (struct _indexingprivate_template *)priv; + free(tpriv->templates); + free(tpriv); } |