Add memleak avoidance for the new exit paths

master
Beq 2019-02-06 23:09:40 +00:00
parent ad1cef2709
commit 1f5d3f9871
1 changed files with 2 additions and 0 deletions

View File

@ -1818,6 +1818,7 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp, const LLUUID& asset_id)
LL_WARNS() << "not a valid source constraint volume " << str
<< " for animation " << asset_id << LL_ENDL;
delete constraintp;
delete mJointMotionList; // <FS:Beq> avoid mem-leak as per others
return FALSE;
}
@ -1864,6 +1865,7 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp, const LLUUID& asset_id)
LL_WARNS() << "not a valid target constraint volume " << str
<< " for animation " << asset_id << LL_ENDL;
delete constraintp;
delete mJointMotionList; // <FS:Beq> avoid mem-leak as per others
return FALSE;
}
}