Skip to content

Commit

Permalink
Fix a crash in 3d views when changing layer properties rapidly
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 21, 2020
1 parent 7f2b71c commit 11026c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/3d/chunks/qgschunknode_p.cpp
Expand Up @@ -171,8 +171,9 @@ void QgsChunkNode::unloadChunk()
Q_ASSERT( mEntity );
Q_ASSERT( mReplacementQueueEntry );

mEntity->deleteLater();
delete mEntity;
mEntity = nullptr;

delete mReplacementQueueEntry;
mReplacementQueueEntry = nullptr;
mState = QgsChunkNode::Skeleton;
Expand Down

0 comments on commit 11026c4

Please sign in to comment.