Fix memory leak in QgsEllipse

This commit is contained in:
Nyall Dawson 2017-09-18 12:23:36 +10:00
parent b53e986781
commit 92d739619d
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ class QgsEllipse
public: public:
QgsEllipse(); QgsEllipse();
virtual ~QgsEllipse();
QgsEllipse( const QgsPoint &center, const double semiMajorAxis, const double semiMinorAxis, const double azimuth = 90 ); QgsEllipse( const QgsPoint &center, const double semiMajorAxis, const double semiMinorAxis, const double azimuth = 90 );
%Docstring %Docstring
Constructs an ellipse by defining all the members. Constructs an ellipse by defining all the members.

View File

@ -41,6 +41,8 @@ class CORE_EXPORT QgsEllipse
public: public:
QgsEllipse(); QgsEllipse();
virtual ~QgsEllipse() = default;
/** Constructs an ellipse by defining all the members. /** Constructs an ellipse by defining all the members.
* \param center The center of the ellipse. * \param center The center of the ellipse.
* \param semiMajorAxis Semi-major axis of the ellipse. * \param semiMajorAxis Semi-major axis of the ellipse.