summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/autodetection.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-01 13:23:47 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-01 15:06:41 +0100
commit163ab4617096edb6384aa8fc7a764d440aee3fb9 (patch)
treeca0e49f5c184aa4def60bcca7f17f0653f45eb6e /rbutil/rbutilqt/base/autodetection.cpp
parenta8d291bd20428a59d29b886b7b1403261f9e5af3 (diff)
downloadrockbox-163ab4617096edb6384aa8fc7a764d440aee3fb9.tar.gz
rockbox-163ab4617096edb6384aa8fc7a764d440aee3fb9.tar.bz2
rockbox-163ab4617096edb6384aa8fc7a764d440aee3fb9.zip
Provide dealloc function to sansapatcher.
Similar as done with ipodpatcher provide a function to free the allocated sector buffer. Change-Id: Ie51e82f7191496bb48973148af1cc35cd37993d3
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 e57c4542d0..4144cca19d 100644
--- a/rbutil/rbutilqt/base/autodetection.cpp
+++ b/rbutil/rbutilqt/base/autodetection.cpp
@@ -185,8 +185,7 @@ bool Autodetection::detect()
else {
qDebug() << "[Autodetect] sansapatcher: no Sansa found." << n;
}
- free(sansa.sectorbuf);
- sansa.sectorbuf = NULL;
+ sansa_dealloc_buffer(&sansa);
if(m_mountpoint.isEmpty() && m_device.isEmpty()
&& m_errdev.isEmpty() && m_incompat.isEmpty())