diff options
Diffstat (limited to 'rbutil/rbutilqt/base/autodetection.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/autodetection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp index 0206502202..8fba1d8cea 100644 --- a/rbutil/rbutilqt/base/autodetection.cpp +++ b/rbutil/rbutilqt/base/autodetection.cpp | |||
@@ -137,9 +137,9 @@ bool Autodetection::detect() | |||
137 | int n; | 137 | int n; |
138 | // try ipodpatcher | 138 | // try ipodpatcher |
139 | // initialize sector buffer. Needed. | 139 | // initialize sector buffer. Needed. |
140 | ipod_sectorbuf = NULL; | ||
141 | ipod_alloc_buffer(&ipod_sectorbuf, BUFFER_SIZE); | ||
142 | struct ipod_t ipod; | 140 | struct ipod_t ipod; |
141 | ipod.sectorbuf = NULL; | ||
142 | ipod_alloc_buffer(&ipod, BUFFER_SIZE); | ||
143 | n = ipod_scan(&ipod); | 143 | n = ipod_scan(&ipod); |
144 | if(n == 1) { | 144 | if(n == 1) { |
145 | qDebug() << "[Autodetect] Ipod found:" << ipod.modelstr << "at" << ipod.diskname; | 145 | qDebug() << "[Autodetect] Ipod found:" << ipod.modelstr << "at" << ipod.diskname; |
@@ -162,8 +162,8 @@ bool Autodetection::detect() | |||
162 | else { | 162 | else { |
163 | qDebug() << "[Autodetect] ipodpatcher: no Ipod found." << n; | 163 | qDebug() << "[Autodetect] ipodpatcher: no Ipod found." << n; |
164 | } | 164 | } |
165 | free(ipod_sectorbuf); | 165 | free(ipod.sectorbuf); |
166 | ipod_sectorbuf = NULL; | 166 | ipod.sectorbuf = NULL; |
167 | 167 | ||
168 | // try sansapatcher | 168 | // try sansapatcher |
169 | // initialize sector buffer. Needed. | 169 | // initialize sector buffer. Needed. |