diff options
author | callum_linden <none@none> | 2015-11-10 15:43:51 -0800 |
---|---|---|
committer | callum_linden <none@none> | 2015-11-10 15:43:51 -0800 |
commit | ca8478454e02d15337329872def5593a9ece21d6 (patch) | |
tree | 3eebabd1974ee4e5f74bfc31a9b2aa7ee6f93717 /indra/llplugin/llpluginclassmedia.cpp | |
parent | abc9df45dae46e7372e8beb840a1294e5a64a94d (diff) | |
parent | f023f87979b1ea49e8a438ee3a006ec4e231962f (diff) |
merge with head
Diffstat (limited to 'indra/llplugin/llpluginclassmedia.cpp')
-rwxr-xr-x | indra/llplugin/llpluginclassmedia.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp index 53fae52021..85653a0fcc 100755 --- a/indra/llplugin/llpluginclassmedia.cpp +++ b/indra/llplugin/llpluginclassmedia.cpp @@ -48,7 +48,6 @@ static int nextPowerOf2( int value ) LLPluginClassMedia::LLPluginClassMedia(LLPluginClassMediaOwner *owner) { mOwner = owner; - mPlugin = NULL; reset(); //debug use @@ -68,7 +67,7 @@ bool LLPluginClassMedia::init(const std::string &launcher_filename, const std::s LL_DEBUGS("Plugin") << "dir: " << plugin_dir << LL_ENDL; LL_DEBUGS("Plugin") << "plugin: " << plugin_filename << LL_ENDL; - mPlugin = new LLPluginProcessParent(this); + mPlugin = LLPluginProcessParent::create(this); mPlugin->setSleepTime(mSleepTime); // Queue up the media init message -- it will be sent after all the currently queued messages. @@ -84,10 +83,10 @@ bool LLPluginClassMedia::init(const std::string &launcher_filename, const std::s void LLPluginClassMedia::reset() { - if(mPlugin != NULL) + if(mPlugin) { - delete mPlugin; - mPlugin = NULL; + mPlugin->requestShutdown(); + mPlugin.reset(); } mTextureParamsReceived = false; |