Index: branches/rekursor/ChameleonPrefPane/Sources/PropertyList.cpp =================================================================== --- branches/rekursor/ChameleonPrefPane/Sources/PropertyList.cpp (revision 77) +++ branches/rekursor/ChameleonPrefPane/Sources/PropertyList.cpp (revision 78) @@ -345,7 +345,7 @@ ret=true; } if(cfKey) CFRelease(cfKey); - //if(myString) CFRelease(myString); + if(myString) CFRelease(myString); return ret; } Index: branches/rekursor/ChameleonPrefPane/Sources/PreferencesControllerBase.mm =================================================================== --- branches/rekursor/ChameleonPrefPane/Sources/PreferencesControllerBase.mm (revision 77) +++ branches/rekursor/ChameleonPrefPane/Sources/PreferencesControllerBase.mm (revision 78) @@ -366,7 +366,11 @@ if (state && bod->Type==OptionFileString) { NSString* f = [self selectAnyFile ]; - if (f) [(NSTextField*) bod->contentID setStringValue: f]; + if (f) + { + [(NSTextField*)bod->contentID setStringValue: f]; + [f release]; + } } [self synchronizeTextContent: bod withValue: state]; break; @@ -396,8 +400,11 @@ - (NSString*) selectPlistFile:(NSString*) name { - return [self selectFileWithFileTypes: @"/" withName: name - withTypes: [NSArray arrayWithObjects: @"plist", nil] ]; + NSArray* fileTypes = [NSArray arrayWithObjects: @"plist", nil]; + NSString * s= [self selectFileWithFileTypes: @"/" withName: name + withTypes: fileTypes]; + [fileTypes release]; + return s; } - (NSString*) selectAnyFile @@ -426,6 +433,7 @@ } } + return nil; } @end Index: branches/rekursor/ChameleonPrefPane/Sources/BootSetupController.mm =================================================================== --- branches/rekursor/ChameleonPrefPane/Sources/BootSetupController.mm (revision 77) +++ branches/rekursor/ChameleonPrefPane/Sources/BootSetupController.mm (revision 78) @@ -223,7 +223,11 @@ if (val) { NSString * f = [self selectPlistFile: @"com.Apple.boot.plist"]; - if(f) [mBootConfigPathText setStringValue:f]; + if(f) + { + [mBootConfigPathText setStringValue:f]; + [f release]; + } } Index: branches/rekursor/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj =================================================================== --- branches/rekursor/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj (revision 77) +++ branches/rekursor/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj (revision 78) @@ -474,15 +474,21 @@ buildSettings = { CONFIGURATION_BUILD_DIR = build/Debug; COPY_PHASE_STRIP = NO; + DEPLOYMENT_LOCATION = YES; + DEPLOYMENT_POSTPROCESSING = NO; + DSTROOT = /; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = StartupPrefPane_Prefix.pch; + GENERATE_PROFILING_CODE = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Library/PreferencePanes"; PRODUCT_NAME = Chameleon; + RUN_CLANG_STATIC_ANALYZER = YES; + SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; WRAPPER_EXTENSION = prefPane; ZERO_LINK = YES; };