Source/AIListWindowController.m
branchadium-1.5.11
changeset 6016 325e2ab3406f
parent 5891 91943bd7083f
equal deleted inserted replaced
6014:fcb71cb71a3d 6016:325e2ab3406f
   576     //In response to windowShouldClose, the interface controller releases us.  At that point, no one would be retaining
   576     //In response to windowShouldClose, the interface controller releases us.  At that point, no one would be retaining
   577 	//this instance of AIContactListWindowController, and we would be deallocated.  The call to [self window] will
   577 	//this instance of AIContactListWindowController, and we would be deallocated.  The call to [self window] will
   578 	//crash if we are deallocated.  A dirty, but functional fix is to temporarily retain ourself here.
   578 	//crash if we are deallocated.  A dirty, but functional fix is to temporarily retain ourself here.
   579     [self retain];
   579     [self retain];
   580 
   580 
   581     if ([self windowShouldClose:nil]) {
   581     if ([self windowShouldClose:sender]) {
   582         [[self window] close];
   582         [[self window] close];
   583     }
   583     }
   584 
   584 
   585     [self release];
   585     [self release];
   586 }
   586 }