factor out Var destruction

This commit is contained in:
aleks-f
2013-02-17 17:05:36 -06:00
parent 9378680c0b
commit f78a4e8965
2 changed files with 18 additions and 10 deletions

View File

@@ -79,15 +79,7 @@ Var::Var(const Var& other)
Var::~Var()
{
if(!isEmpty())
{
#ifndef POCO_NO_SOO
if(_placeholder.isLocal())
content()->~VarHolder();
else
#endif
delete content();
}
destruct();
}