From 758abfc936c9e9e777d9175a394998a9af094e19 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Tue, 17 Mar 2020 03:25:11 -0400 Subject: [PATCH] Prevent leak of gesture data upon disconnection --- indra/newview/llpreviewgesture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/llpreviewgesture.cpp b/indra/newview/llpreviewgesture.cpp index 70ce2757344..1ab988735cb 100644 --- a/indra/newview/llpreviewgesture.cpp +++ b/indra/newview/llpreviewgesture.cpp @@ -1092,6 +1092,8 @@ void LLPreviewGesture::saveIfNeeded() if (!region) { LL_WARNS() << "Not connected to a region, cannot save gesture." << LL_ENDL; + delete gesture; + gesture = NULL; return; } std::string agent_url = region->getCapability("UpdateGestureAgentInventory"); -- GitLab