aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index ca0fb1a..89bb38b 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -1829,8 +1829,10 @@ EXIT:
(*subchannel)->operations.clean(&(*subchannel)->data);
}
for (output = outputs.begin() ; output != outputs.end(); ++output) {
- (*output)->output->Close();
- delete ((*output)->output);
+ if ((*output)->output) {
+ (*output)->output->Close();
+ delete ((*output)->output);
+ }
}
for_each(ensemble->components.begin(), ensemble->components.end(), free);