summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interchange/ord.hxx2
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