fixed notification memory leaks

This commit is contained in:
chombier 2001-03-20 20:23:31 +00:00
parent 5e98d4474b
commit 67d72c607d
1 changed files with 4 additions and 1 deletions

View File

@ -1165,7 +1165,10 @@ void HandleEvent(EventRecord *myEvent) //CCP split this from DoEvents so we can
if (gHaveInstalledNotification)
{
NMRemove(nRecPtr);
DisposeHandle(nRecPtr->nmIcon);
/*DisposeHandle(nRecPtr->nmIcon, true);*/
if (nRecPtr->nmIcon)
DisposeIconSuite(nRecPtr->nmIcon, TRUE);
DisposePtr(nRecPtr);
gHaveInstalledNotification = FALSE;
}
// DisableItem( myMenus[Edit],EDcut);