aboutsummaryrefslogtreecommitdiff
path: root/src/refine.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-11-19 15:38:56 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-11-19 15:38:56 +0000
commit88f9e0588abe38a52819b528f80227cb17483c80 (patch)
tree7171b01bfe91bf7a8bd85b35944afb0d0e71ec7c /src/refine.c
parent5ec97a2ab3f759aa9419cec6ac2bd3f9b6f53f48 (diff)
Fix memory leaks and other memory problems
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@197 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/refine.c')
-rw-r--r--src/refine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/refine.c b/src/refine.c
index 85573b6..b68220b 100644
--- a/src/refine.c
+++ b/src/refine.c
@@ -346,11 +346,11 @@ static int refine_sequence_sweep(ControlContext *ctx, double *fit, double *warp)
series_dev_n++;
image_feature_list_free(rflist);
-
+
} else {
-
+
/* Even-numbered images: fit */
- refine_fit_image(ctx->cell, &ctx->images->images[ctx->reproject_cur_image], ctx->cell_lattice);
+ refine_fit_image(ctx->cell, &ctx->images->images[i], ctx->cell_lattice);
displaywindow_update(ctx->dw);
}
@@ -408,7 +408,7 @@ static gint refine_sequence(GtkWidget *step_button, ControlContext *ctx) {
ctx->images->images[i].omega -= omega_offs;
}
memcpy(ctx->cell, &cell_copy, sizeof(Basis));
-
+
}
window_fit = gtk_window_new(GTK_WINDOW_TOPLEVEL);