mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: free plot data on exit
Some widgets copy the full plot info. Free these data on exit to prevent monstrous valgrind reports. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
05a5a06fd3
commit
4e86d99714
6 changed files with 18 additions and 0 deletions
|
@ -14,6 +14,11 @@ DivePlotDataModel::DivePlotDataModel(QObject *parent) :
|
|||
memset(&plot_deco_state, 0, sizeof(struct deco_state));
|
||||
}
|
||||
|
||||
DivePlotDataModel::~DivePlotDataModel()
|
||||
{
|
||||
free_plot_info_data(&pInfo);
|
||||
}
|
||||
|
||||
int DivePlotDataModel::columnCount(const QModelIndex&) const
|
||||
{
|
||||
return COLUMNS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue