diff options
author | Thomas White <taw@physics.org> | 2015-10-05 18:00:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-10-05 18:03:18 +0200 |
commit | 6358f3a21a5023332be86adf933eb375dd67fea0 (patch) | |
tree | 45bea6cb1da2593a1bd09fd25a9840f68fa1e9a8 | |
parent | 81fdf61e5530fb6f766a3d50b0185571a7929d8a (diff) |
hdfsee: Remove image->data
-rw-r--r-- | src/dw-hdfsee.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 5362bca7..3911b7f4 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); } @@ -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; |