mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-31 09:20:58 +02:00
fix memleak , free unused track.aacbuf
Origin commit data
------------------
Branch: master
Commit: 77011582f7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-02-22 (Fri, 22 Feb 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -85,6 +85,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