kopia lustrzana https://github.com/OpenRTX/OpenRTX
fix double-free when codec_terminate is called multiple times
rodzic
822fb84146
commit
dea0ecbf29
|
@ -79,7 +79,11 @@ void codec_terminate()
|
||||||
pthread_cond_destroy(¬_empty);
|
pthread_cond_destroy(¬_empty);
|
||||||
pthread_cond_destroy(¬_full);
|
pthread_cond_destroy(¬_full);
|
||||||
|
|
||||||
if(audioBuf != NULL) free(audioBuf);
|
if(audioBuf != NULL)
|
||||||
|
{
|
||||||
|
free(audioBuf);
|
||||||
|
audioBuf = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool codec_startEncode(const enum AudioSource source)
|
bool codec_startEncode(const enum AudioSource source)
|
||||||
|
|
Ładowanie…
Reference in New Issue