summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-01-31 17:22:09 -0500
committerJosh Ferrell <josh@vector35.com>2024-01-31 17:22:09 -0500
commit03ed26cd16bef38cb8bcd871bdbe3f0b9e89b1af (patch)
tree053bc8cb02da7e2029386969699a0b4a66f91fc4 /ui
parent3b690d1fc95557860799a4d6597d929752dc5a74 (diff)
Fix memory leak in type browser
Diffstat (limited to 'ui')
-rw-r--r--ui/typebrowser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/typebrowser.h b/ui/typebrowser.h
index d74fe341..b6f442a2 100644
--- a/ui/typebrowser.h
+++ b/ui/typebrowser.h
@@ -206,7 +206,7 @@ class BINARYNINJAUIAPI TypeBrowserModel : public QAbstractItemModel, public Bina
void commitUpdates(std::vector<TypeBrowserTreeNode::UpdateData>& updates);
public:
- TypeBrowserModel(BinaryViewRef data);
+ TypeBrowserModel(BinaryViewRef data, QObject* parent);
virtual ~TypeBrowserModel();
BinaryViewRef getData() { return m_data; }
std::shared_ptr<TypeBrowserTreeNode> getRootNode() { return m_rootNode; }
@@ -267,7 +267,7 @@ protected:
bool lessThan(const QModelIndex& source_left, const QModelIndex& source_right) const override;
public:
- TypeBrowserFilterModel(BinaryViewRef data, TypeBrowserModel* model);
+ TypeBrowserFilterModel(BinaryViewRef data, TypeBrowserModel* model, QObject* parent);
void setFilter(const std::string& filter);
TypeBrowserFilterMode filterMode() const { return m_filterMode; }