aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-11-03 10:54:19 +0100
committerThomas White <taw@physics.org>2015-11-03 10:54:19 +0100
commit2cfd03ca948b53dc5e57622f8c3eb50156c03231 (patch)
treee094d48f39ed33859f1da45a404d70ccadf8355b /src/dw-hdfsee.c
parent832374fb4578ed5252bd3bcbdf699833115088f9 (diff)
parent478c76bc45ae1a7cbb7be1f10306a0ae985a41b6 (diff)
Merge branch 'tom/imagedata'
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 004c92ae..e260e4a0 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -94,8 +94,6 @@ static gint displaywindow_closed(GtkWidget *window, DisplayWindow *dw)
if ( dw->image != NULL ) {
free(dw->image->filename);
- free(dw->image->data);
- free(dw->image->flags);
free(dw->image);
}
@@ -207,7 +205,7 @@ static int render_adsc_uint16(DisplayWindow *dw, const char *filename)
fs = dfs;
ss = dss;
- val = image->data[fs + image->width * ss];
+ val = 0.0;//image->data[fs + image->width * ss]; FIXME!
if ( val < 0 ) {
out = 0;
} else if ( val > 65535 ) {
@@ -925,8 +923,6 @@ static gint displaywindow_newevent(DisplayWindow *dw, int new_event)
if ( dw->not_ready_yet ) return 0;
- float *old_data = dw->image->data;
- uint16_t *old_flags = dw->image->flags;
float **old_dp = dw->image->dp;
int **old_bad = dw->image->bad;
@@ -934,8 +930,6 @@ static gint displaywindow_newevent(DisplayWindow *dw, int new_event)
dw->ev_list->events[new_event], 0);
if ( fail ) {
ERROR("Couldn't load image");
- dw->image->data = old_data;
- dw->image->flags = old_flags;
dw->image->dp = old_dp;
dw->image->bad = old_bad;
return 1;
@@ -956,8 +950,6 @@ static gint displaywindow_newevent(DisplayWindow *dw, int new_event)
free(old_dp[i]);
free(old_bad[i]);
}
- free(old_data);
- free(old_flags);
free(old_dp);
free(old_bad);
return 0;