fixes bug #385044
authorRudy Richter
Wed Jun 24 23:01:22 2009 -0400 (2009-06-24)
changeset 42297293e4e2f375
parent 4228 6febcb06621d
child 4230 7de4cf9ccf4d
fixes bug #385044
Common/Source/CFGrowlAdditions.c
     1.1 --- a/Common/Source/CFGrowlAdditions.c	Wed Jun 24 23:00:44 2009 -0400
     1.2 +++ b/Common/Source/CFGrowlAdditions.c	Wed Jun 24 23:01:22 2009 -0400
     1.3 @@ -345,9 +345,11 @@
     1.4  					NSLog(CFSTR("in createURLByMakingDirectoryAtURLWithName in CFGrowlAdditions: could not create directory '%@' in parent directory at %@: FSCreateDirectoryUnicode returned %li (please tell the Growl developers)"), name, parent, (long)err);
     1.5  			}
     1.6  
     1.7 +		} //if (name)
     1.8 +		if(parent)
     1.9  			CFRelease(parent);
    1.10 -		} //if (name)
    1.11 -		CFRelease(name);
    1.12 +		if(name)
    1.13 +			CFRelease(name);
    1.14  	} //if (parent)
    1.15  
    1.16  end: