diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-07 11:38:39 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-07 11:38:39 +0800 |
commit | 393645a911a02a0f716027ab016756a71b922655 (patch) | |
tree | 97a935bb769fe7d637fb5c3227364ab5a9d0fc33 | |
parent | 1d0dc942aaed38ce2d4c4b8c8f078dd945c7e633 (diff) |
Check m_data before its profile
-rw-r--r-- | interchange/ord.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interchange/ord.hxx b/interchange/ord.hxx index 57b1797..91a22c3 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -41,7 +41,7 @@ namespace QInterchange { m_totalCost{.0} {} ~Ord() { - if (m_data->profile) free(m_data->profile); + if (m_data && m_data->profile) free(m_data->profile); } int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const |