aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-08 10:58:21 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:57 +0100
commit9526f8c65df5fdb21247b57cd414c258375dc798 (patch)
tree8ae9ed8c1778196992e94a7f73f21b52f353f676 /src/index.c
parent52f8c8aa18ca79fb6af5acf458dd22448d0944fc (diff)
Free indexing resources at the end
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c
index 8f563990..16265865 100644
--- a/src/index.c
+++ b/src/index.c
@@ -56,6 +56,19 @@ IndexingPrivate *prepare_indexing(IndexingMethod indm, UnitCell *cell,
}
+void cleanup_indexing(IndexingPrivate *priv)
+{
+ switch ( priv->indm ) {
+ case INDEXING_NONE :
+ break;
+ case INDEXING_DIRAX :
+ break;
+ case INDEXING_TEMPLATE :
+ free_templates(priv);
+ }
+}
+
+
static void write_drx(struct image *image)
{
FILE *fh;