Skip to content
Browse files

Fix memory leak when no model point positions are available

(cherry picked from commit a3ee8c1)
  • Loading branch information
nyalldawson committed Aug 25, 2020
1 parent b9e942f commit 19b1001dd025ba39021c32dc52044f529f84e689
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/3d/symbols/qgspoint3dsymbol_p.cpp
@@ -457,6 +457,9 @@ void QgsModelPoint3DSymbolHandler::addSceneEntities( const Qgs3DMapSettings &map

void QgsModelPoint3DSymbolHandler::addMeshEntities( const Qgs3DMapSettings &map, const QVector<QVector3D> &positions, const QgsPoint3DSymbol &symbol, Qt3DCore::QEntity *parent, bool are_selected )
if ( positions.empty() )

// build the default material
Qt3DExtras::QPhongMaterial *mat = Qgs3DUtils::phongMaterial( symbol.material() );

0 comments on commit 19b1001

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