Skip to content
Permalink
Browse files

Fix a crash in 3d views when changing layer properties rapidly

  • Loading branch information
nyalldawson committed Dec 21, 2020
1 parent 7f2b71c commit 11026c44a16bd58a717eb194a4e8af9c1bfb3471
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/3d/chunks/qgschunknode_p.cpp
@@ -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;

0 comments on commit 11026c4

Please sign in to comment.
You can’t perform that action at this time.