mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
memory leak fixed
This commit is contained in:
parent
17aac3789e
commit
32d8581672
@ -205,6 +205,13 @@ ScriptHighlighter::ScriptHighlighter(QTextDocument* parent):
|
||||
}
|
||||
}
|
||||
|
||||
TextBlockData::~TextBlockData()
|
||||
{
|
||||
foreach(ParenthesisInfo* info, m_parentheses){
|
||||
delete info;
|
||||
}
|
||||
}
|
||||
|
||||
QVector<ParenthesisInfo*> TextBlockData::parentheses()
|
||||
{
|
||||
return m_parentheses;
|
||||
|
@ -23,6 +23,7 @@ class TextBlockData : public QTextBlockUserData
|
||||
{
|
||||
public:
|
||||
TextBlockData(){}
|
||||
~TextBlockData();
|
||||
QVector<ParenthesisInfo *> parentheses();
|
||||
void insert(ParenthesisInfo *info);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user