From 393645a911a02a0f716027ab016756a71b922655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 7 Feb 2023 11:38:39 +0800 Subject: Check m_data before its profile --- interchange/ord.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interchange') 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 -- cgit v1.2.3