Fixed mem leak

This commit is contained in:
Pulak Malhotra 2021-07-29 17:53:08 +05:30
parent a10aeacab1
commit 433f0c594a
2 changed files with 4 additions and 0 deletions

View File

@ -1616,6 +1616,8 @@ QVector<HeapBlock> CutterCore::getHeapBlocks()
blocks_vector.append(block); blocks_vector.append(block);
} }
rz_list_free(blocks);
return blocks_vector; return blocks_vector;
} }

View File

@ -18,6 +18,8 @@ WindowsHeapWidget::WindowsHeapWidget(MainWindow *main, QWidget *parent)
refreshDeferrer = dynamic_cast<CutterDockWidget *>(parent)->createRefreshDeferrer( refreshDeferrer = dynamic_cast<CutterDockWidget *>(parent)->createRefreshDeferrer(
[this]() { updateContents(); }); [this]() { updateContents(); });
updateContents();
} }
WindowsHeapWidget::~WindowsHeapWidget() WindowsHeapWidget::~WindowsHeapWidget()