mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Leak fix: make ostcFirmwareCheck a unique_ptr
ostcFirmwareCheck in DownloadFromDCWidget was neither freed in the destructor, not freed if a new object was allocated. Simply make it a unique_ptr<> to do all the work for us. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
69248141c5
commit
a70597b903
2 changed files with 3 additions and 3 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <QHash>
|
||||
#include <QMap>
|
||||
#include <QAbstractTableModel>
|
||||
#include <memory>
|
||||
|
||||
#include "core/libdivecomputer.h"
|
||||
#include "desktop-widgets/configuredivecomputerdialog.h"
|
||||
|
|
@ -79,7 +80,7 @@ private:
|
|||
void fill_device_list(unsigned int transport);
|
||||
QTimer *timer;
|
||||
bool dumpWarningShown;
|
||||
OstcFirmwareCheck *ostcFirmwareCheck;
|
||||
std::unique_ptr<OstcFirmwareCheck> ostcFirmwareCheck;
|
||||
DiveImportedModel *diveImportedModel;
|
||||
#if defined(BT_SUPPORT)
|
||||
BtDeviceSelectionDialog *btDeviceSelectionDialog;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue