Bug 1191112 part 2 - Set the destroyed flag on nsCocoaWindow when destroyed. r=smichaud

--HG--
extra : source : d06d4277d3b203f2053c2aadaed7e5beb801023f
This commit is contained in:
Xidorn Quan 2015-08-06 15:37:48 +10:00
Родитель 62dc5a030c
Коммит 3b13439b32
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -500,6 +500,10 @@ NS_IMETHODIMP nsCocoaWindow::CreatePopupContentView(const nsIntRect &aRect)
NS_IMETHODIMP nsCocoaWindow::Destroy() NS_IMETHODIMP nsCocoaWindow::Destroy()
{ {
if (mOnDestroyCalled)
return NS_OK;
mOnDestroyCalled = true;
// If we don't hide here we run into problems with panels, this is not ideal. // If we don't hide here we run into problems with panels, this is not ideal.
// (Bug 891424) // (Bug 891424)
Show(false); Show(false);