Fixed dereferencing potential null pointer in CPlugin::GetProperty (bug 5725, r=dvander).
This commit is contained in:
parent
1b19622ab8
commit
bb7cfd2493
@ -174,7 +174,9 @@ bool CPlugin::GetProperty(const char *prop, void **ptr, bool remove/* =false */)
|
||||
|
||||
if (exists)
|
||||
{
|
||||
if (ptr)
|
||||
*ptr = *ptrpp;
|
||||
|
||||
if (remove)
|
||||
m_pProps.remove(prop);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user