Skip to content

Commit

Permalink
Fix memory leak in QgsEllipse
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent b53e986 commit 92d7396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/geometry/qgsellipse.sip
Expand Up @@ -27,6 +27,8 @@ class QgsEllipse
public:
QgsEllipse();

virtual ~QgsEllipse();

QgsEllipse( const QgsPoint &center, const double semiMajorAxis, const double semiMinorAxis, const double azimuth = 90 );
%Docstring
Constructs an ellipse by defining all the members.
Expand Down
2 changes: 2 additions & 0 deletions src/core/geometry/qgsellipse.h
Expand Up @@ -41,6 +41,8 @@ class CORE_EXPORT QgsEllipse
public:
QgsEllipse();

virtual ~QgsEllipse() = default;

/** Constructs an ellipse by defining all the members.
* \param center The center of the ellipse.
* \param semiMajorAxis Semi-major axis of the ellipse.
Expand Down

0 comments on commit 92d7396

Please sign in to comment.