diff --git a/src/rds95.c b/src/rds95.c index 5ae3d74..61c8dd8 100644 --- a/src/rds95.c +++ b/src/rds95.c @@ -223,6 +223,8 @@ int main(int argc, char **argv) { fprintf(stderr, "Waiting for pipe thread to shut down.\n"); pthread_join(control_pipe_thread, NULL); } + pthread_attr_destroy(&attr); + exit_rds_encoder(); pa_simple_free(device); return 0;