Fix potential memory leak.
--HG-- branch : develop
This commit is contained in:
parent
3a8fd53dc8
commit
82c48ef4c3
|
@ -141,16 +141,16 @@ VPE::VProperty* VPE::VPropertyFactoryManager::createProperty(const QString& type
|
|||
}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
VPE::VPropertyFactoryManager *VPE::VPropertyFactoryManager::getDefaultManager()
|
||||
{
|
||||
if (!DefaultManager)
|
||||
{
|
||||
DefaultManager = new VPropertyFactoryManager();
|
||||
/*VStandardPropertyFactory* tmpStandardProp = */new VStandardPropertyFactory(DefaultManager);
|
||||
}
|
||||
//VPE::VPropertyFactoryManager *VPE::VPropertyFactoryManager::getDefaultManager()
|
||||
//{
|
||||
// if (!DefaultManager)
|
||||
// {
|
||||
// DefaultManager = new VPropertyFactoryManager();
|
||||
// /*VStandardPropertyFactory* tmpStandardProp = */new VStandardPropertyFactory(DefaultManager);
|
||||
// }
|
||||
|
||||
return DefaultManager;
|
||||
}
|
||||
// return DefaultManager;
|
||||
//}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
QStringList VPE::VPropertyFactoryManager::getSupportedTypes()
|
||||
|
|
|
@ -80,7 +80,7 @@ public:
|
|||
const QString& default_value = QString());
|
||||
|
||||
//! Returns the default manager.
|
||||
static VPropertyFactoryManager* getDefaultManager();
|
||||
//static VPropertyFactoryManager* getDefaultManager();
|
||||
|
||||
//! Returns a list of all supported property types
|
||||
QStringList getSupportedTypes();
|
||||
|
|
Loading…
Reference in New Issue
Block a user