mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-28 06:45:49 +00:00
safe guard against expressions like x = 2*sin(bas)+5*
This commit is contained in:
@ -84,12 +84,14 @@ std::auto_ptr<Preset> PresetFactoryManager::allocate(const std::string & url, co
|
||||
const std::string extension = parseExtension (url);
|
||||
|
||||
return factory(extension).allocate(url, name);
|
||||
} catch (const PresetFactoryException & e) {
|
||||
throw e;
|
||||
} catch (const std::exception & e) {
|
||||
throw PresetFactoryException(e.what());
|
||||
} catch (...) {
|
||||
throw PresetFactoryException("uncaught preset factory exception");
|
||||
}
|
||||
|
||||
return std::auto_ptr<Preset>();
|
||||
}
|
||||
|
||||
PresetFactory & PresetFactoryManager::factory(const std::string & extension) {
|
||||
|
||||
Reference in New Issue
Block a user