diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp index 68fba01c8..5d679d7c3 100644 --- a/indra/llui/llview.cpp +++ b/indra/llui/llview.cpp @@ -1807,7 +1807,13 @@ BOOL LLView::deleteViewByHandle(LLHandle handle) { LLView* viewp = handle.get(); - delete viewp; + // Getting some crashes on exit, + //guess it should check if the view actually exists before deleting it, but I'm not wading through all of Philip's code. + //probably a bug in the delayed ui delete crap (what *is* that, anyways?) + if(viewp) + delete viewp; + // + return viewp != NULL; }