Diff for /chimera/nsCocoaBrowserService.mm between versions 1.5 and 1.6

version 1.5, 2002/02/05 01:28:18 version 1.6, 2002/02/10 01:12:05
Line 146  nsCocoaBrowserService::BrowserClosed() Line 146  nsCocoaBrowserService::BrowserClosed()
     if (!sSingleton && sNumBrowsers == 0) {      if (!sSingleton && sNumBrowsers == 0) {
         // The app is terminating *and* our count dropped to 0.          // The app is terminating *and* our count dropped to 0.
         NS_TermEmbedding();          NS_TermEmbedding();
           printf("Shutting down embedding!\n");
     }      }
 }  }
   
Line 154  nsCocoaBrowserService::TermEmbedding() Line 155  nsCocoaBrowserService::TermEmbedding()
 {  {
     NS_RELEASE(sSingleton);      NS_RELEASE(sSingleton);
           
    if (sNumBrowsers == 0)    if (sNumBrowsers == 0) {
         NS_TermEmbedding(); // Safe to terminate now.          NS_TermEmbedding(); // Safe to terminate now.
           printf("Shutting down embedding.\n");
       }
           
     // Otherwise we cannot yet terminate.  We have to let the death of the browser windows      // Otherwise we cannot yet terminate.  We have to let the death of the browser windows
     // induce termination.      // induce termination.

Removed from v.1.5  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>