mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 11:50:37 +00:00
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:
parent
4062979769
commit
412547c233
4 changed files with 59 additions and 186 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue