Skip to content
Snippets Groups Projects
Commit 758abfc9 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Prevent leak of gesture data upon disconnection

parent 2ba9d8eb
No related branches found
No related tags found
No related merge requests found
...@@ -1092,6 +1092,8 @@ void LLPreviewGesture::saveIfNeeded() ...@@ -1092,6 +1092,8 @@ void LLPreviewGesture::saveIfNeeded()
if (!region) if (!region)
{ {
LL_WARNS() << "Not connected to a region, cannot save gesture." << LL_ENDL; LL_WARNS() << "Not connected to a region, cannot save gesture." << LL_ENDL;
delete gesture;
gesture = NULL;
return; return;
} }
std::string agent_url = region->getCapability("UpdateGestureAgentInventory"); std::string agent_url = region->getCapability("UpdateGestureAgentInventory");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment