Chameleon Applications

Chameleon Applications Commit Details

Date:2010-01-28 20:33:01 (14 years 2 months ago)
Author:Rekursor
Commit:78
Parents: 77
Message:fixed some memory leaks
Changes:
M/branches/rekursor/ChameleonPrefPane/Sources/BootSetupController.mm
M/branches/rekursor/ChameleonPrefPane/Sources/PropertyList.cpp
M/branches/rekursor/ChameleonPrefPane/Sources/PreferencesControllerBase.mm
M/branches/rekursor/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj

File differences

branches/rekursor/ChameleonPrefPane/Sources/PropertyList.cpp
345345
346346
347347
348
348
349349
350350
351351
ret=true;
}
if(cfKey) CFRelease(cfKey);
//if(myString) CFRelease(myString);
if(myString) CFRelease(myString);
return ret;
}
branches/rekursor/ChameleonPrefPane/Sources/PreferencesControllerBase.mm
366366
367367
368368
369
369
370
371
372
373
370374
371375
372376
......
396400
397401
398402
399
400
403
404
405
406
407
401408
402409
403410
......
426433
427434
428435
436
429437
430438
431439
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;
- (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
}
}
return nil;
}
@end
branches/rekursor/ChameleonPrefPane/Sources/BootSetupController.mm
223223
224224
225225
226
226
227
228
229
230
227231
228232
229233
if (val)
{
NSString * f = [self selectPlistFile: @"com.Apple.boot.plist"];
if(f) [mBootConfigPathText setStringValue:f];
if(f)
{
[mBootConfigPathText setStringValue:f];
[f release];
}
}
branches/rekursor/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj
474474
475475
476476
477
478
479
477480
478481
479482
480483
481484
482485
486
483487
484488
485489
490
491
486492
487493
488494
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;
};

Archive Download the corresponding diff file

Revision: 78