diff options
author | Thomas White <taw@physics.org> | 2010-10-07 11:10:06 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | 9351a96fb30e931d493ee1aecbdf5e49aefa23bc (patch) | |
tree | 205f5ed7cbbc97ce747f568cd8caa07e58fdc636 /src/hdf5-file.c | |
parent | 7ef66546da2cfa014972cda6cc04c13211e6a88f (diff) |
Don't forget to create the feature list...
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index 5022dd44..a5cb8ee0 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -155,6 +155,11 @@ int get_peaks(struct image *image, struct hdfile *f) return 1; } + if ( image->features != NULL ) { + image_feature_list_free(image->features); + } + image->features = image_feature_list_new(); + for ( i=0; i<size[0]; i++ ) { unsigned int x, y; |