Small bug fixes found by static analyser.

Plus a huge change on NSComboBoxCell after years of testing :-)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32585 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-03-14 21:45:39 +00:00
parent 4062979769
commit 412547c233
4 changed files with 59 additions and 186 deletions

View file

@ -109,7 +109,7 @@ static BOOL didWarn;
[printer parsePPDAtPath: ppdPath];
return printer;
return AUTORELEASE(printer);
}
printer = [[GSCUPSPrinter alloc]
@ -142,16 +142,16 @@ static BOOL didWarn;
int n;
set = [[NSMutableSet alloc] init];
AUTORELEASE( set );
AUTORELEASE(set);
numDests = cupsGetDests( &dests );
numDests = cupsGetDests(&dests);
for( n = 0; n < numDests; n++ )
for (n = 0; n < numDests; n++)
{
[set addObject: [NSString stringWithCString: dests[n].name]];
}
cupsFreeDests( numDests, dests );
cupsFreeDests(numDests, dests);
// No printer found, return at least the dummy printer
if ([set count] == 0)