summaryrefslogtreecommitdiff
path: root/src/sink_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sink_input.c')
-rw-r--r--src/sink_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sink_input.c b/src/sink_input.c
index 9a72899..5679813 100644
--- a/src/sink_input.c
+++ b/src/sink_input.c
@@ -49,7 +49,8 @@ void sink_input_list_enlarge(sink_input_info*** sink_input_list, int* max, int c
void sink_input_list_clear(sink_input_info** sink_input_list, int *max) {
for (int i = 0; i < (*max); ++i)
- sink_input_clear(sink_input_list[i]);
+ if (sink_input_list[i] != NULL)
+ sink_input_clear(sink_input_list[i]);
(*max) = 0;