aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-08 13:46:43 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:57 +0100
commit0ae49f9ad195ad65758ac21e146691edaeeb2512 (patch)
treecdbac768d4c043770a56e44497e27fe28e8745c4
parenta3d91adadd8b0784f9c8e6603e7e1e440de7a66f (diff)
Free more indexing resources
-rw-r--r--src/templates.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/templates.c b/src/templates.c
index 55983a61..468612f2 100644
--- a/src/templates.c
+++ b/src/templates.c
@@ -362,9 +362,15 @@ void match_templates(struct image *image, IndexingPrivate *ipriv)
void free_templates(IndexingPrivate *priv)
{
+ int i;
struct _indexingprivate_template *tpriv
= (struct _indexingprivate_template *)priv;
+ for ( i=0; i<tpriv->n_templates; i++ ) {
+ free(tpriv->templates[i].spots);
+ }
+
free(tpriv->templates);
+ cell_free(tpriv->cell);
free(tpriv);
}