0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

memory leak fixed

This commit is contained in:
Arin Alex 2018-03-07 19:46:23 +03:00
parent 17aac3789e
commit 32d8581672
2 changed files with 8 additions and 0 deletions

View File

@ -205,6 +205,13 @@ ScriptHighlighter::ScriptHighlighter(QTextDocument* parent):
}
}
TextBlockData::~TextBlockData()
{
foreach(ParenthesisInfo* info, m_parentheses){
delete info;
}
}
QVector<ParenthesisInfo*> TextBlockData::parentheses()
{
return m_parentheses;

View File

@ -23,6 +23,7 @@ class TextBlockData : public QTextBlockUserData
{
public:
TextBlockData(){}
~TextBlockData();
QVector<ParenthesisInfo *> parentheses();
void insert(ParenthesisInfo *info);