diff options
Diffstat (limited to 'src')
-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; |