summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermedia_streamingaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewermedia_streamingaudio.cpp')
-rw-r--r--indra/newview/llviewermedia_streamingaudio.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia_streamingaudio.cpp b/indra/newview/llviewermedia_streamingaudio.cpp
index 3d2d2fc2a6..db41ee4b1e 100644
--- a/indra/newview/llviewermedia_streamingaudio.cpp
+++ b/indra/newview/llviewermedia_streamingaudio.cpp
@@ -71,6 +71,8 @@ void LLStreamingAudio_MediaPlugins::start(const std::string& url)
LL_INFOS() << "setting stream to NULL"<< LL_ENDL;
mURL.clear();
mMediaPlugin->stop();
+ delete mMediaPlugin;
+ mMediaPlugin = nullptr;
}
}
@@ -80,6 +82,8 @@ void LLStreamingAudio_MediaPlugins::stop()
if(mMediaPlugin)
{
mMediaPlugin->stop();
+ delete mMediaPlugin;
+ mMediaPlugin = nullptr;
}
mURL.clear();