From 1b264af38ca835f4dc64e965846a71313d4be781 Mon Sep 17 00:00:00 2001
From: andreykproductengine <andreykproductengine@lindenlab.com>
Date: Wed, 23 Aug 2017 18:39:47 +0300
Subject: [PATCH] MAINT-7737 Fixed memory leak in Outfit Gallery

---
 indra/newview/lloutfitgallery.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/newview/lloutfitgallery.cpp b/indra/newview/lloutfitgallery.cpp
index 0d289e6d878..cca65f2ce1f 100644
--- a/indra/newview/lloutfitgallery.cpp
+++ b/indra/newview/lloutfitgallery.cpp
@@ -1215,6 +1215,7 @@ void LLOutfitGallery::uploadPhoto(LLUUID outfit_id)
                 upload_pending_name, callback, expected_upload_cost, nruserdata);
             mOutfitLinkPending = outfit_id;
         }
+        delete unit;
     }
 }
 
-- 
GitLab