Changeset 356 for trunk/Cocoa/Pester


Ignore:
Timestamp:
11/23/07 22:58:24 (17 years ago)
Author:
Nicholas Riley
Message:

PSAlarmNotifierController: Fix crashing bug on alarm dismissal by retaining self after window is closed but before alert completes (alert does not retain alarm, but notifier controller does).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/PSAlarmNotifierController.m

    r102 r356  
    5757- (void)dealloc;
    5858{
    59     [alarm release];
     59    [alarm release]; alarm = nil;
    6060    [updateTimer invalidate]; updateTimer = nil;
    6161    [super dealloc];
     
    8787{
    8888    [PSAlarmAlertController stopAlerts: sender];
    89     [self close];
     89    [self retain];
     90    [self close]; // releases self in windowWillClose:
    9091    [[PSNotifierAlert alert] completedForAlarm: alarm];
     92    [self release];
    9193}
    9294
Note: See TracChangeset for help on using the changeset viewer.