Fixed a couple of minor leaks under garbage-collection. Found using Instruments.
authorPeter Hosey <hg@boredzo.org>
Tue Oct 20 22:47:12 2009 -0700 (2009-10-20)
changeset 4539383d84e26955
parent 4538 987d555071f6
child 4540 0d3b2dbc6706
Fixed a couple of minor leaks under garbage-collection. Found using Instruments.
Framework/Source/GrowlApplicationBridge.m
     1.1 --- a/Framework/Source/GrowlApplicationBridge.m	Tue Oct 20 22:35:28 2009 -0700
     1.2 +++ b/Framework/Source/GrowlApplicationBridge.m	Tue Oct 20 22:47:12 2009 -0700
     1.3 @@ -448,7 +448,7 @@
     1.4  				} else {
     1.5  					[mRegDict removeObjectForKey:GROWL_APP_LOCATION];
     1.6  				}
     1.7 -				[myURL release];
     1.8 +				[NSMakeCollectable(myURL) release];
     1.9  			}
    1.10  		}
    1.11  	}
    1.12 @@ -549,7 +549,7 @@
    1.13  	if (!iconData) {
    1.14  		NSURL *URL = copyCurrentProcessURL();
    1.15  		iconData = [copyIconDataForURL(URL) autorelease];
    1.16 -		[URL release];
    1.17 +		[NSMakeCollectable(URL) release];
    1.18  	}
    1.19  
    1.20  	return iconData;