bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scanner not being released in NSColor.m


From: Benhur Stein
Subject: scanner not being released in NSColor.m
Date: Fri, 17 Jun 2005 20:07:39 -0300

Hi!

In NSColor.m, line 1416, there is this code:


      NSScanner *scanner = [[NSScanner alloc] initWithString: str];

      if ([scanner scanFloat: &r] &&
          [scanner scanFloat: &g] &&
          [scanner scanFloat: &b] &&
          [scanner isAtEnd])
        {
          return [self colorWithCalibratedRed: r
                                        green: g
                                         blue: b
                                        alpha: 1.0];


scanner should be released before the return.

Benhur

reply via email to

[Prev in Thread] Current Thread [Next in Thread]