forked from len0rd/rockbox
Provide dealloc function to sansapatcher.
Similar as done with ipodpatcher provide a function to free the allocated sector buffer. Change-Id: Ie51e82f7191496bb48973148af1cc35cd37993d3
This commit is contained in:
parent
a8d291bd20
commit
163ab46170
6 changed files with 27 additions and 4 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -36,8 +36,7 @@ BootloaderInstallSansa::BootloaderInstallSansa(QObject *parent)
|
|||
BootloaderInstallSansa::~BootloaderInstallSansa()
|
||||
{
|
||||
if(sansa.sectorbuf) {
|
||||
free(sansa.sectorbuf);
|
||||
sansa.sectorbuf = NULL;
|
||||
sansa_dealloc_buffer(&sansa);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue