diff options
author | Thomas White <taw@physics.org> | 2010-09-08 10:58:21 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:57 +0100 |
commit | 9526f8c65df5fdb21247b57cd414c258375dc798 (patch) | |
tree | 8ae9ed8c1778196992e94a7f73f21b52f353f676 /src/templates.c | |
parent | 52f8c8aa18ca79fb6af5acf458dd22448d0944fc (diff) |
Free indexing resources at the end
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); } |