Skip to content

Commit

Permalink
Fix memory leak when no model point positions are available
Browse files Browse the repository at this point in the history
(cherry picked from commit a3ee8c1)
  • Loading branch information
nyalldawson committed Aug 25, 2020
1 parent b9e942f commit 19b1001
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/3d/symbols/qgspoint3dsymbol_p.cpp
Expand Up @@ -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() )
return;

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

Expand Down

0 comments on commit 19b1001

Please sign in to comment.