From b63d429c8f2c68994600d98bfaddf59ca16fc889 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 1 Jan 2013 11:04:21 +0100 Subject: 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 --- rbutil/rbutilqt/base/bootloaderinstallipod.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/bootloaderinstallipod.cpp') diff --git a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp index 3d90663392..de7aaa897b 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp @@ -37,8 +37,7 @@ BootloaderInstallIpod::BootloaderInstallIpod(QObject *parent) BootloaderInstallIpod::~BootloaderInstallIpod() { if(ipod.sectorbuf) { - free(ipod.sectorbuf); - ipod.sectorbuf = NULL; + ipod_dealloc_buffer(&ipod); } } -- cgit v1.2.3