Fix bad handle Forward handling in RequstFrame (irc, r=psychonic).
This commit is contained in:
parent
06d2017a95
commit
36cc7610a1
@ -637,7 +637,7 @@ static cell_t sm_AddFrameAction(IPluginContext *pContext, const cell_t *params)
|
|||||||
Handle_t Handle = handlesys->CreateHandle(g_PrivateFwdType, pForward, pIdentity, g_pCoreIdent, NULL);
|
Handle_t Handle = handlesys->CreateHandle(g_PrivateFwdType, pForward, pIdentity, g_pCoreIdent, NULL);
|
||||||
if (Handle == BAD_HANDLE)
|
if (Handle == BAD_HANDLE)
|
||||||
{
|
{
|
||||||
delete pForward;
|
forwardsys->ReleaseForward(pForward);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user