Skip to content

Commit b44cf5d

Browse files
committed
Fix memory leak
1 parent 01468d0 commit b44cf5d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

python/core/layout/qgslayoutundocommand.sip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ class QgsLayoutUndoObjectInterface
112112
%End
113113
public:
114114

115+
~QgsLayoutUndoObjectInterface();
116+
%Docstring
117+
Destructor for QgsLayoutUndoObjectInterface.
118+
%End
119+
115120
virtual QgsAbstractLayoutUndoCommand *createCommand( const QString &text, int id = 0, QUndoCommand *parent = 0 ) = 0 /Factory/;
116121
%Docstring
117122
Creates a new layout undo command with the specified ``text`` and ``parent``.

src/core/layout/qgslayoutundocommand.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ class CORE_EXPORT QgsLayoutUndoObjectInterface
129129
{
130130
public:
131131

132+
/**
133+
* Destructor for QgsLayoutUndoObjectInterface.
134+
*/
135+
~QgsLayoutUndoObjectInterface() = default;
136+
132137
/**
133138
* Creates a new layout undo command with the specified \a text and \a parent.
134139
*

0 commit comments

Comments
 (0)