nsCOMPtr<nsIPluginHost> ph = do_GetService(kCPluginManagerCID); nsCOMPtr<nsPIPluginHost> pph(do_QueryInterface(ph)); if (pph) { pph->DeletePluginNativeWindow(mPluginWindow); mPluginWindow = nsnull; }
pluginInstanceOwner :: ~pluginInstanceOwner(){  // shut off the timer.  if (mPluginTimer != nsnull) {    CancelTimer();  }  NS_IF_RELEASE(mInstance);  mWindow = nsnull;  mViewer = nsnull;}