mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Fix unlikely plStateDescriptor leak
This commit is contained in:
@ -187,7 +187,9 @@ int plSDLMgr::Read(hsStream* s, plSDL::DescriptorList* dl)
|
||||
plStateDescriptor* sd=new plStateDescriptor;
|
||||
if (sd->Read(s))
|
||||
dl->push_back(sd);
|
||||
}
|
||||
else
|
||||
delete sd; // well that sucked
|
||||
}
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
|
Reference in New Issue
Block a user