diff --git a/indra/newview/llfloatercreatelandmark.cpp b/indra/newview/llfloatercreatelandmark.cpp index 5bcbe7a2d115a25b13e00dd7ad284875bc2fe63e..e2222bb82631567bb8e38e80d453f3f1689b70dc 100644 --- a/indra/newview/llfloatercreatelandmark.cpp +++ b/indra/newview/llfloatercreatelandmark.cpp @@ -73,6 +73,11 @@ LLFloaterCreateLandmark::LLFloaterCreateLandmark(const LLSD& key) LLFloaterCreateLandmark::~LLFloaterCreateLandmark() { removeObserver(); + if(mInventoryObserver) + { + delete mInventoryObserver; + mInventoryObserver = nullptr; + } } BOOL LLFloaterCreateLandmark::postBuild()