Fixed memory leak.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-25 11:30:02 +02:00
parent 8f47af2c56
commit 2bd5a22218

View File

@ -599,7 +599,10 @@ const VTranslateVars *VApplication::TrVars()
//---------------------------------------------------------------------------------------------------------------------
void VApplication::InitTrVars()
{
trVars = new VTranslateVars(ValentinaSettings()->GetOsSeparator());
if (trVars == nullptr)
{
trVars = new VTranslateVars(ValentinaSettings()->GetOsSeparator());
}
}
//---------------------------------------------------------------------------------------------------------------------