1
0
Fork 0
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:
Dominik Riebeling 2013-01-01 11:04:21 +01:00
parent 45cda1fdcc
commit b63d429c8f
6 changed files with 27 additions and 4 deletions

View file

@ -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.