mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-28 16:01:22 +02:00
fix memleak , free unused track.aacbuf
This commit is contained in:
@@ -107,6 +107,10 @@ static int ManagerAdd(Context_t *context, Track_t track)
|
||||
if (Tracks[i].Id == track.Id)
|
||||
{
|
||||
Tracks[i].pending = 0;
|
||||
if(track.aacbuf){
|
||||
free(track.aacbuf);
|
||||
track.aacbuf = NULL;
|
||||
}
|
||||
return cERR_AUDIO_MGR_NO_ERROR;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user