Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
fftw
Commits
0cc3f425
Commit
0cc3f425
authored
May 22, 2017
by
Arnaud Blanchard
Browse files
When output in a file, destroy array, before the end. Avoid blc_channel trying to remove data
parent
54029cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
f_fftw_spectrum/f_fftw_spectrum.cpp
View file @
0cc3f425
...
...
@@ -86,8 +86,15 @@ int main(int argc, char**argv){
blc_eprint_cursor_up
(
rows_nb
);
}
}
if
(
output
.
fd
==
-
1
){
output
.
~
blc_array
();
}
fftwf_destroy_plan
(
fftw_plan
);
blc_eprint_cursor_down
(
rows_nb
);
if
(
file
)
SYSTEM_ERROR_CHECK
(
fclose
(
file
),
-
1
,
NULL
);
return
EXIT_SUCCESS
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment