Fixed dereferencing potential null pointer in CPlugin::GetProperty (bug 5725, r=dvander).

This commit is contained in:
Kyle Sanderson 2013-05-06 12:12:00 -04:00
parent 1b19622ab8
commit bb7cfd2493

View File

@ -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);
}