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
  • Loading branch information
nyalldawson committed Aug 21, 2020
1 parent a27930c commit bf13801
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/3d/symbols/qgspoint3dsymbol_p.cpp
Expand Up @@ -454,6 +454,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
QgsMaterialContext materialContext;
materialContext.setIsSelected( are_selected );
Expand Down

0 comments on commit bf13801

Please sign in to comment.