mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 11:22:00 +01:00
better clean up
This commit is contained in:
@@ -133,8 +133,9 @@ void show_help(char *name) {
|
||||
|
||||
void cleanup_runtime(FM95_Runtime* runtime, const FM95_Config config) {
|
||||
if(config.lpf_cutoff != 0) {
|
||||
iirfilt_rrrf_destroy(runtime->lpf_l);
|
||||
iirfilt_rrrf_destroy(runtime->lpf_r);
|
||||
if(runtime->lpf_l != NULL) iirfilt_rrrf_destroy(runtime->lpf_l);
|
||||
if(runtime->lpf_r != NULL) iirfilt_rrrf_destroy(runtime->lpf_r);
|
||||
runtime->lpf_l = runtime->lpf_r = NULL;
|
||||
}
|
||||
exit_stereo_encoder(&runtime->stencode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user