Use a QPointer for Partition in DeleteOperation to avoid double-delete.
This commit is contained in:
parent
3ec80be2a1
commit
dc9e9651ac
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include "../ops/operation.h"
|
#include "../ops/operation.h"
|
||||||
|
|
||||||
|
#include <QPointer>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
class Device;
|
class Device;
|
||||||
|
@ -101,7 +102,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Device& m_TargetDevice;
|
Device& m_TargetDevice;
|
||||||
Partition* m_DeletedPartition;
|
QPointer< Partition > m_DeletedPartition;
|
||||||
ShredAction m_ShredAction;
|
ShredAction m_ShredAction;
|
||||||
Job* m_DeleteFileSystemJob;
|
Job* m_DeleteFileSystemJob;
|
||||||
DeletePartitionJob* m_DeletePartitionJob;
|
DeletePartitionJob* m_DeletePartitionJob;
|
||||||
|
|
Loading…
Reference in New Issue