From 6c828030a7b2704e3eaa380054796e0ce783cf8c Mon Sep 17 00:00:00 2001 From: Nicky Date: Mon, 20 Apr 2015 14:52:52 +0200 Subject: [PATCH] Add two more missing va_end. --- indra/llappearance/llavatarappearancedefines.cpp | 2 ++ indra/llinventory/llinventorytype.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/indra/llappearance/llavatarappearancedefines.cpp b/indra/llappearance/llavatarappearancedefines.cpp index f1c78946a1..f2c16a6f62 100644 --- a/indra/llappearance/llavatarappearancedefines.cpp +++ b/indra/llappearance/llavatarappearancedefines.cpp @@ -212,6 +212,8 @@ LLAvatarAppearanceDictionary::BakedEntry::BakedEntry(ETextureIndex tex_index, LLWearableType::EType t = (LLWearableType::EType)va_arg(argp,int); mWearables.push_back(t); } + + va_end( argp ); // Needs to be freed when done. } // static diff --git a/indra/llinventory/llinventorytype.cpp b/indra/llinventory/llinventorytype.cpp index 8807b36117..f10e9b916f 100755 --- a/indra/llinventory/llinventorytype.cpp +++ b/indra/llinventory/llinventorytype.cpp @@ -53,6 +53,7 @@ struct InventoryEntry : public LLDictionaryEntry LLAssetType::EType t = (LLAssetType::EType)va_arg(argp,int); mAssetTypes.push_back(t); } + va_end( argp ); // Needs to be freed when done. } const std::string mHumanName;