fix leaks in bio2jack

This commit is contained in:
niels
2015-06-23 23:48:27 +02:00
parent a4f1d9a00e
commit e8bc55acee
2 changed files with 11 additions and 0 deletions

View File

@@ -2486,6 +2486,16 @@ JACK_SetClientName(char *name)
} }
} }
void
JACK_FreeClientName()
{
if( client_name ) {
free(client_name);
client_name = NULL;
}
}
long JACK_OutputStatus(int deviceID,long *sec, long *usec) long JACK_OutputStatus(int deviceID,long *sec, long *usec)
{ {
jack_driver_t *this = &outDev[deviceID]; jack_driver_t *this = &outDev[deviceID];

View File

@@ -106,6 +106,7 @@ int JACK_SetAllVolume(int deviceID, unsigned int volume); /* returns 0 on succe
int JACK_SetVolumeForChannel(int deviceID, unsigned int channel, unsigned int volume); int JACK_SetVolumeForChannel(int deviceID, unsigned int channel, unsigned int volume);
void JACK_GetVolumeForChannel(int deviceID, unsigned int channel, unsigned int *volume); void JACK_GetVolumeForChannel(int deviceID, unsigned int channel, unsigned int *volume);
void JACK_FreeClientName();
unsigned long JACK_GetOutputBytesPerSecond(int deviceID); /* bytes_per_output_frame * sample_rate */ unsigned long JACK_GetOutputBytesPerSecond(int deviceID); /* bytes_per_output_frame * sample_rate */
unsigned long JACK_GetInputBytesPerSecond(int deviceID); /* bytes_per_input_frame * sample_rate */ unsigned long JACK_GetInputBytesPerSecond(int deviceID); /* bytes_per_input_frame * sample_rate */