Workaround for delayeddelete crash when closing

This commit is contained in:
Hazim Gazov
2010-08-22 02:05:58 +00:00
committed by Beeks
parent d9cf8144e4
commit ef4d705f64

View File

@@ -1807,7 +1807,13 @@ BOOL LLView::deleteViewByHandle(LLHandle<LLView> handle)
{
LLView* viewp = handle.get();
delete viewp;
//<edit> 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;
//</edit>
return viewp != NULL;
}