0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 12:53:53 +01:00
This commit is contained in:
2025-03-22 20:36:28 +01:00
parent 8c8b139868
commit 1933895450

View File

@@ -55,8 +55,8 @@ int main(int argc, char **argv) {
char control_pipe[51] = "\0"; char control_pipe[51] = "\0";
pa_simple *rds1_device; pa_simple *rds1_device = NULL;
pa_simple *rds2_device; pa_simple *rds2_device = ;
pa_sample_spec format; pa_sample_spec format;
pa_buffer_attr buffer; pa_buffer_attr buffer;
@@ -183,8 +183,12 @@ exit:
} }
pthread_attr_destroy(&attr); pthread_attr_destroy(&attr);
pa_simple_free(rds1_device); if (rds1_device != NULL) {
pa_simple_free(rds2_device); pa_simple_free(rds1_device);
}
if (rds2_device != NULL) {
pa_simple_free(rds2_device);
}
return 0; return 0;
} }