From d91559b8f08a8e1957f673307b777da176c31b5a Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 3 Jan 2015 11:05:31 -0500 Subject: [PATCH] Fix crash if NodeResolver destroyed before pending any node resolutions --- src/nodedef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodedef.h b/src/nodedef.h index 1be764121..ef6371885 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -402,9 +402,9 @@ public: m_ndef = NULL; } - ~NodeResolver() + virtual ~NodeResolver() { - if (!m_lookup_done) + if (!m_lookup_done && m_ndef) m_ndef->cancelNodeResolve(this); }