Skip navigation.
 
mlRe: CoreFoundation or Expat?
FROM : Patrick Coskren
DATE : Wed Nov 20 09:32:25 2002

Whoops; you're right.  Actually, "properties" is the only one that
might be null, but it needs to be checked.  The amended code should
read:

  CFRelease(desiredProperties);
  CFRelease(document);
  if (NULL != properties) {
      CFRelease(properties);
  }

On Tuesday, November 19, 2002, at 11:45 PM, Rosyna wrote:

> Yeah, this would crash if any of the pointers were NULL. I believe the
> code in CF is something like
>
> CFRelease(CFTypeRef arg);
> if (NULL==arg)
> abort();
>
> ;)
>
> Ack, at 11/19/02, Patrick Coskren said:
>

>>  CFRelease(desiredProperties);
>>  CFRelease(document);
>>  CFRelease(properties);
>>  return result;

>
> --
>
>
> Sincerely,
> Rosyna Keller
> Technical Support/Holy Knight/Always needs a hug
>
> Unsanity: Unsane Tools for Insanely Great People
> ---
>
> Please include any previous correspondence in replies, it helps me
> remember what we were talking about. Thanks.
>



Related mailsAuthorDate
mlCoreFoundation or Expat? Patrick Coskren Nov 19, 08:30
mlRe: CoreFoundation or Expat? Gregory Seidman Nov 19, 09:32
mlRe: CoreFoundation or Expat? Timothy Ritchey Nov 19, 09:57
mlRE: CoreFoundation or Expat? Jake A. Repp Nov 19, 09:58
mlRe: CoreFoundation or Expat? Patrick Coskren Nov 19, 10:07
mlRe: CoreFoundation or Expat? Chris Parker Nov 19, 10:18
mlRe: CoreFoundation or Expat? Patrick Coskren Nov 19, 10:33
mlRe: CoreFoundation or Expat? Richard Nov 19, 14:20
mlRe: CoreFoundation or Expat? David Cake Nov 19, 16:51
mlRe: CoreFoundation or Expat? Rosyna Nov 19, 20:47
mlRe: CoreFoundation or Expat? Patrick Coskren Nov 20, 09:32
mlRe: CoreFoundation or Expat? Rosyna Nov 20, 12:56