protected virtual void Dispose(bool disposing) { if (disposing) { // remove any pending texture requests lock (pendingTextureLock) { if (pendingTexture != null && pendingTexture.Texture != null) { pendingTexture.Texture.Dispose(); } pendingTexture = null; } if (browser != null) { browser.CloseBrowser(true); browser = null; } } }