Skip to content
Permalink
Browse files

Fix leak in network analysis director

(cherry-picked from 540d692)
  • Loading branch information
nyalldawson committed Mar 15, 2018
1 parent d7f4366 commit 9fecbab10b5d2d72a4455bb5d423140facf0a444
Showing with 7 additions and 0 deletions.
  1. +2 −0 python/analysis/network/qgsgraphdirector.sip.in
  2. +5 −0 src/analysis/network/qgsgraphdirector.h
@@ -32,6 +32,8 @@ using "builder" design patter.
%End
public:

~QgsGraphDirector();

virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY > &snappedPoints /Out/,
@@ -56,6 +56,11 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject

public:

~QgsGraphDirector()
{
qDeleteAll( mStrategies );
}

/**
* Make a graph using QgsGraphBuilder
*

0 comments on commit 9fecbab

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