Skip to content
Permalink
Browse files

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

(cherry picked from commit 11026c4)
  • Loading branch information
nyalldawson committed Dec 21, 2020
1 parent a2beeba commit e2af50bcb419e223971ca7f4a80438773a8c0835
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/3d/chunks/qgschunknode_p.cpp
@@ -182,8 +182,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 e2af50b

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