From 163ab4617096edb6384aa8fc7a764d440aee3fb9 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 1 Jan 2013 13:23:47 +0100 Subject: Provide dealloc function to sansapatcher. Similar as done with ipodpatcher provide a function to free the allocated sector buffer. Change-Id: Ie51e82f7191496bb48973148af1cc35cd37993d3 --- rbutil/rbutilqt/base/autodetection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/autodetection.cpp') 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()) -- cgit v1.2.3