Fix bad handle Forward handling in RequstFrame (irc, r=psychonic).

This commit is contained in:
Kyle Sanderson 2014-02-08 15:10:35 -07:00
parent 06d2017a95
commit 36cc7610a1

View File

@ -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);
if (Handle == BAD_HANDLE)
{
delete pForward;
forwardsys->ReleaseForward(pForward);
return 0;
}