Beispiel #1
0
 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;
         }
     }
 }