summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/autodetection.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-01 11:04:21 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-01 15:06:41 +0100
commitb63d429c8f2c68994600d98bfaddf59ca16fc889 (patch)
tree6cd4d216f57f28d95faf96a913188646f5527909 /rbutil/rbutilqt/base/autodetection.cpp
parent45cda1fdcc963db4824224af362de780e0d29097 (diff)
downloadrockbox-b63d429c8f2c68994600d98bfaddf59ca16fc889.tar.gz
rockbox-b63d429c8f2c68994600d98bfaddf59ca16fc889.tar.bz2
rockbox-b63d429c8f2c68994600d98bfaddf59ca16fc889.zip
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
Diffstat (limited to 'rbutil/rbutilqt/base/autodetection.cpp')
-rw-r--r--rbutil/rbutilqt/base/autodetection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp
index a453fa8d60..e57c4542d0 100644
--- a/rbutil/rbutilqt/base/autodetection.cpp
+++ b/rbutil/rbutilqt/base/autodetection.cpp
@@ -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.