diff --git a/core/logic/PluginSys.cpp b/core/logic/PluginSys.cpp index d440d5e1..5cbdb6f7 100644 --- a/core/logic/PluginSys.cpp +++ b/core/logic/PluginSys.cpp @@ -174,7 +174,9 @@ bool CPlugin::GetProperty(const char *prop, void **ptr, bool remove/* =false */) if (exists) { - *ptr = *ptrpp; + if (ptr) + *ptr = *ptrpp; + if (remove) m_pProps.remove(prop); }