aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerparcelmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerparcelmgr.cpp')
-rw-r--r--linden/indra/newview/llviewerparcelmgr.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp
index 3d4bbe5..437a768 100644
--- a/linden/indra/newview/llviewerparcelmgr.cpp
+++ b/linden/indra/newview/llviewerparcelmgr.cpp
@@ -2577,8 +2577,21 @@ bool LLParcelSelection::hasOthersSelected() const
2577 return mSelectedOtherCount != 0; 2577 return mSelectedOtherCount != 0;
2578} 2578}
2579 2579
2580static LLPointer<LLParcelSelection> sNullSelection;
2581
2580LLParcelSelection* get_null_parcel_selection() 2582LLParcelSelection* get_null_parcel_selection()
2581{ 2583{
2582 static LLParcelSelection null_selection; 2584 if (sNullSelection.isNull())
2583 return &null_selection; 2585 {
2586 sNullSelection = new LLParcelSelection;
2587 }
2588
2589 return sNullSelection;
2590}
2591
2592void LLViewerParcelMgr::cleanupGlobals()
2593{
2594 delete gParcelMgr;
2595 gParcelMgr = NULL;
2596 sNullSelection = NULL;
2584} 2597}