Skip to content

Commit

Permalink
Fix leak in network analysis director
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 11, 2018
1 parent dfa6b6a commit 540d692
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/analysis/network/qgsgraphdirector.sip.in
Expand Up @@ -32,6 +32,8 @@ using "builder" design patter.
%End
public:

~QgsGraphDirector();

virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY > &snappedPoints /Out/,
Expand Down
5 changes: 5 additions & 0 deletions src/analysis/network/qgsgraphdirector.h
Expand Up @@ -56,6 +56,11 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject

public:

~QgsGraphDirector()
{
qDeleteAll( mStrategies );
}

/**
* Make a graph using QgsGraphBuilder
*
Expand Down

0 comments on commit 540d692

Please sign in to comment.