forked from len0rd/rockbox
Provide dealloc function to ipodpatcher.
On Windows the sector buffer is allocated using VirtualAlloc, thus releasing this buffer should be done using VirtualFree. Provide an additional function for deallocating the buffer so users of ipodpatcher do not need to know about this. Change-Id: Ibb0fc575a185148a389e63935e86a392bf8d180d
This commit is contained in:
parent
45cda1fdcc
commit
b63d429c8f
6 changed files with 27 additions and 4 deletions
|
|
@ -162,8 +162,7 @@ bool Autodetection::detect()
|
|||
else {
|
||||
qDebug() << "[Autodetect] ipodpatcher: no Ipod found." << n;
|
||||
}
|
||||
free(ipod.sectorbuf);
|
||||
ipod.sectorbuf = NULL;
|
||||
ipod_dealloc_buffer(&ipod);
|
||||
|
||||
// try sansapatcher
|
||||
// initialize sector buffer. Needed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue