mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: plug KTraderParse memory leak
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
70e051e57e
commit
efbbf59a32
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ Q_DESTRUCTOR_FUNCTION(KTraderParseDeinit);
|
|||
ParseTreeBase::Ptr KTraderParse::parseConstraints( const QString& _constr )
|
||||
{
|
||||
if (s_parsingData) {
|
||||
s_parsingData->ptr.clear();
|
||||
delete s_parsingData;
|
||||
}
|
||||
s_parsingData = new ParsingData();
|
||||
|
|
Loading…
Add table
Reference in a new issue