From 12d44073c8399bb29588f252b95d19f0d379998d Mon Sep 17 00:00:00 2001 From: Stinson Linden Date: Tue, 6 May 2014 01:11:46 +0100 Subject: MAINT-4009: Ensuring that the spare browser media source is cleaned up with the LLViewerMedia class. --- indra/newview/llviewermedia.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; + } } ////////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3