Fix memory leak

This commit is contained in:
Nyall Dawson 2017-09-18 12:10:46 +10:00
parent 01468d0879
commit b44cf5d10f
2 changed files with 10 additions and 0 deletions

View File

@ -112,6 +112,11 @@ class QgsLayoutUndoObjectInterface
%End
public:
~QgsLayoutUndoObjectInterface();
%Docstring
Destructor for QgsLayoutUndoObjectInterface.
%End
virtual QgsAbstractLayoutUndoCommand *createCommand( const QString &text, int id = 0, QUndoCommand *parent = 0 ) = 0 /Factory/;
%Docstring
Creates a new layout undo command with the specified ``text`` and ``parent``.

View File

@ -129,6 +129,11 @@ class CORE_EXPORT QgsLayoutUndoObjectInterface
{
public:
/**
* Destructor for QgsLayoutUndoObjectInterface.
*/
~QgsLayoutUndoObjectInterface() = default;
/**
* Creates a new layout undo command with the specified \a text and \a parent.
*