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
|
// cppcheck-suppress unusedFunction
|
||||||
VPE::VPropertyFactoryManager *VPE::VPropertyFactoryManager::getDefaultManager()
|
//VPE::VPropertyFactoryManager *VPE::VPropertyFactoryManager::getDefaultManager()
|
||||||
{
|
//{
|
||||||
if (!DefaultManager)
|
// if (!DefaultManager)
|
||||||
{
|
// {
|
||||||
DefaultManager = new VPropertyFactoryManager();
|
// DefaultManager = new VPropertyFactoryManager();
|
||||||
/*VStandardPropertyFactory* tmpStandardProp = */new VStandardPropertyFactory(DefaultManager);
|
// /*VStandardPropertyFactory* tmpStandardProp = */new VStandardPropertyFactory(DefaultManager);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return DefaultManager;
|
// return DefaultManager;
|
||||||
}
|
//}
|
||||||
|
|
||||||
// cppcheck-suppress unusedFunction
|
// cppcheck-suppress unusedFunction
|
||||||
QStringList VPE::VPropertyFactoryManager::getSupportedTypes()
|
QStringList VPE::VPropertyFactoryManager::getSupportedTypes()
|
||||||
|
|
|
@ -80,7 +80,7 @@ public:
|
||||||
const QString& default_value = QString());
|
const QString& default_value = QString());
|
||||||
|
|
||||||
//! Returns the default manager.
|
//! Returns the default manager.
|
||||||
static VPropertyFactoryManager* getDefaultManager();
|
//static VPropertyFactoryManager* getDefaultManager();
|
||||||
|
|
||||||
//! Returns a list of all supported property types
|
//! Returns a list of all supported property types
|
||||||
QStringList getSupportedTypes();
|
QStringList getSupportedTypes();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user