Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 18, 2017
1 parent 01468d0 commit b44cf5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/core/layout/qgslayoutundocommand.sip
Expand Up @@ -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``.
Expand Down
5 changes: 5 additions & 0 deletions src/core/layout/qgslayoutundocommand.h
Expand Up @@ -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.
*
Expand Down

0 comments on commit b44cf5d

Please sign in to comment.