Skip to content
Snippets Groups Projects
Commit 14d87f38 authored by Drake Arconis's avatar Drake Arconis
Browse files

fixed: Possible use after free

parent ef94e083
No related branches found
No related tags found
No related merge requests found
...@@ -291,13 +291,13 @@ void LLWorld::removeRegion(const LLHost &host) ...@@ -291,13 +291,13 @@ void LLWorld::removeRegion(const LLHost &host)
mRegionRemovedSignal(regionp); mRegionRemovedSignal(regionp);
delete regionp;
updateWaterObjects(); updateWaterObjects();
//double check all objects of this region are removed. //double check all objects of this region are removed.
gObjectList.clearAllMapObjectsInRegion(regionp) ; gObjectList.clearAllMapObjectsInRegion(regionp) ;
//llassert_always(!gObjectList.hasMapObjectInRegion(regionp)) ; //llassert_always(!gObjectList.hasMapObjectInRegion(regionp)) ;
delete regionp; // <alchemy/> - Use after free fix?
} }
......
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