Ticket #24: jack.diff
| File jack.diff, 1.1 KB (added by leland_lucius, 2 years ago) |
|---|
-
pa_jack.c
old new 466 466 467 467 const char **jack_ports = NULL; 468 468 char **client_names = NULL; 469 char *regex_pattern = MALLOC( jack_client_name_size() + 3 );469 char *regex_pattern = NULL; 470 470 int port_index, client_index, i; 471 471 double globalSampleRate; 472 472 regex_t port_regex; 473 473 unsigned long numClients = 0, numPorts = 0; 474 char *tmp_client_name = MALLOC( jack_client_name_size() );474 char *tmp_client_name = NULL; 475 475 476 476 commonApi->info.defaultInputDevice = paNoDevice; 477 477 commonApi->info.defaultOutputDevice = paNoDevice; … … 484 484 * associated with the previous list */ 485 485 PaUtil_FreeAllAllocations( jackApi->deviceInfoMemory ); 486 486 487 regex_pattern = MALLOC( jack_client_name_size() + 3 ); 488 tmp_client_name = MALLOC( jack_client_name_size() ); 489 487 490 /* We can only retrieve the list of clients indirectly, by first 488 491 * asking for a list of all ports, then parsing the port names 489 492 * according to the client_name:port_name convention (which is
