Skip to content

Commit 92d7396

Browse files
committedSep 19, 2017
Fix memory leak in QgsEllipse
1 parent b53e986 commit 92d7396

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎python/core/geometry/qgsellipse.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class QgsEllipse
2727
public:
2828
QgsEllipse();
2929

30+
virtual ~QgsEllipse();
31+
3032
QgsEllipse( const QgsPoint &center, const double semiMajorAxis, const double semiMinorAxis, const double azimuth = 90 );
3133
%Docstring
3234
Constructs an ellipse by defining all the members.

‎src/core/geometry/qgsellipse.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class CORE_EXPORT QgsEllipse
4141
public:
4242
QgsEllipse();
4343

44+
virtual ~QgsEllipse() = default;
45+
4446
/** Constructs an ellipse by defining all the members.
4547
* \param center The center of the ellipse.
4648
* \param semiMajorAxis Semi-major axis of the ellipse.

0 commit comments

Comments
 (0)
Please sign in to comment.