diff options
| author | Richard Linden <none@none> | 2010-03-16 10:34:26 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2010-03-16 10:34:26 -0700 |
| commit | f8caa38265123a6e70b67e93483c2f8ed73e2320 (patch) | |
| tree | 99b926c05ed738a38b53ab76225be864e49c5c8c /indra/newview/lltextureview.cpp | |
| parent | a5d1a7b1bac43a4aa88aa647b040a21ca951c682 (diff) | |
| parent | f6754b9fd09754c7ec9e3d8082631c4fa8151aa7 (diff) | |
merge
Diffstat (limited to 'indra/newview/lltextureview.cpp')
| -rw-r--r-- | indra/newview/lltextureview.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp index 6cd8a78b25..43913f3632 100644 --- a/indra/newview/lltextureview.cpp +++ b/indra/newview/lltextureview.cpp @@ -660,8 +660,9 @@ struct compare_decode_pair struct KillView { - void operator()(LLView* viewp) const + void operator()(LLView* viewp) { + viewp->getParent()->removeChild(viewp); viewp->die(); } }; @@ -676,8 +677,12 @@ void LLTextureView::draw() for_each(mTextureBars.begin(), mTextureBars.end(), KillView()); mTextureBars.clear(); - delete mGLTexMemBar; - mGLTexMemBar = 0; + if (mGLTexMemBar) + { + removeChild(mGLTexMemBar); + mGLTexMemBar->die(); + mGLTexMemBar = 0; + } typedef std::multiset<decode_pair_t, compare_decode_pair > display_list_t; display_list_t display_image_list; |
