diff options
author | Monroe Linden <monroe@lindenlab.com> | 2009-11-09 16:19:33 -0800 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2009-11-09 16:19:33 -0800 |
commit | caadf0be39b844e6bf91c5a302a837d107a1e415 (patch) | |
tree | 9a8555a9086ece77f83e85ed8a46e6b6ea4fbb0d /indra/newview/llvovolume.cpp | |
parent | b6de723de05ea0e2b748a697ed995efe7b466ffd (diff) |
Fix for DEV-42029 (changing media on multiple faces can make a zombie SLPlugin).
Made LLViewerMedia::updateMediaImpl() unload the impl's media plugin when the current URL goes empty.
Made LLVOVolume::syncMediaData() call removeMediaImpl() if the media data gets deleted.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index a32abf3ab9..c987dd1764 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -1733,6 +1733,10 @@ void LLVOVolume::syncMediaData(S32 texture_index, const LLSD &media_data, bool m addMediaImpl(media_impl, texture_index) ; } + else + { + removeMediaImpl(texture_index); + } //llinfos << "AFTER: texture_index = " << texture_index // << " hasMedia = " << te->hasMedia() << " : " |