Skip to content

Commit

Permalink
[examples] only delete sink if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
piem committed Dec 21, 2018
1 parent 98d7aaa commit fef012a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/utils.c
Expand Up @@ -184,7 +184,8 @@ void examples_common_process (aubio_process_func_t process_func,
total_read, blocks, hop_size, source_uri, samplerate);

del_aubio_source (this_source);
del_aubio_sink (this_sink);
if (this_sink)
del_aubio_sink (this_sink);

}
}
Expand Down

0 comments on commit fef012a

Please sign in to comment.