mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:57:39 +00:00
+colorFromString: make sure to always release scanner.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21326 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a2f3571cfc
commit
6271fe55d4
2 changed files with 8 additions and 1 deletions
|
@ -1420,13 +1420,14 @@ systemColorWithName(NSString *name)
|
|||
[scanner scanFloat: &b] &&
|
||||
[scanner isAtEnd])
|
||||
{
|
||||
RELEASE(scanner);
|
||||
return [self colorWithCalibratedRed: r
|
||||
green: g
|
||||
blue: b
|
||||
alpha: 1.0];
|
||||
}
|
||||
|
||||
DESTROY(scanner);
|
||||
RELEASE(scanner);
|
||||
}
|
||||
|
||||
return nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue