From 1f5d3f9871f0e0ca79a127ddaa75b15b46b3bfb1 Mon Sep 17 00:00:00 2001 From: Beq Date: Wed, 6 Feb 2019 23:09:40 +0000 Subject: [PATCH] Add memleak avoidance for the new exit paths --- indra/llcharacter/llkeyframemotion.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llcharacter/llkeyframemotion.cpp b/indra/llcharacter/llkeyframemotion.cpp index 18028e17c2..8cac6a8da2 100644 --- a/indra/llcharacter/llkeyframemotion.cpp +++ b/indra/llcharacter/llkeyframemotion.cpp @@ -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; // 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; // avoid mem-leak as per others return FALSE; } }