mirror of https://github.com/macssh/macssh.git
fixed notification memory leaks
This commit is contained in:
parent
5e98d4474b
commit
67d72c607d
|
@ -1165,7 +1165,10 @@ void HandleEvent(EventRecord *myEvent) //CCP split this from DoEvents so we can
|
||||||
if (gHaveInstalledNotification)
|
if (gHaveInstalledNotification)
|
||||||
{
|
{
|
||||||
NMRemove(nRecPtr);
|
NMRemove(nRecPtr);
|
||||||
DisposeHandle(nRecPtr->nmIcon);
|
/*DisposeHandle(nRecPtr->nmIcon, true);*/
|
||||||
|
if (nRecPtr->nmIcon)
|
||||||
|
DisposeIconSuite(nRecPtr->nmIcon, TRUE);
|
||||||
|
DisposePtr(nRecPtr);
|
||||||
gHaveInstalledNotification = FALSE;
|
gHaveInstalledNotification = FALSE;
|
||||||
}
|
}
|
||||||
// DisableItem( myMenus[Edit],EDcut);
|
// DisableItem( myMenus[Edit],EDcut);
|
||||||
|
|
Loading…
Reference in New Issue