Skip to content

Commit

Permalink
Fix crash if NodeResolver destroyed before pending any node resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Jan 3, 2015
1 parent 800d912 commit d91559b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nodedef.h
Expand Up @@ -402,9 +402,9 @@ class NodeResolver {
m_ndef = NULL;
}

~NodeResolver()
virtual ~NodeResolver()
{
if (!m_lookup_done)
if (!m_lookup_done && m_ndef)
m_ndef->cancelNodeResolve(this);
}

Expand Down

0 comments on commit d91559b

Please sign in to comment.