summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermedia.cpp
diff options
context:
space:
mode:
authorStinson Linden <stinson@lindenlab.com>2014-05-06 01:11:46 +0100
committerStinson Linden <stinson@lindenlab.com>2014-05-06 01:11:46 +0100
commit12d44073c8399bb29588f252b95d19f0d379998d (patch)
treeda89524381bee256faa13d7e2845ffad83ea6f94 /indra/newview/llviewermedia.cpp
parent001621dfc21942a6ae0075ca3eef31720f42477b (diff)
MAINT-4009: Ensuring that the spare browser media source is cleaned up with the LLViewerMedia class.
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rwxr-xr-xindra/newview/llviewermedia.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 7958537856..0967ca23c0 100755
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -1603,6 +1603,11 @@ void LLViewerMedia::cleanupClass()
{
gIdleCallbacks.deleteFunction(LLViewerMedia::updateMedia, NULL);
sTeleportFinishConnection.disconnect();
+ if (sSpareBrowserMediaSource != NULL)
+ {
+ delete sSpareBrowserMediaSource;
+ sSpareBrowserMediaSource = NULL;
+ }
}
//////////////////////////////////////////////////////////////////////////////////////////