Changeset 138 for trunk/launch/launch


Ignore:
Timestamp:
04/14/03 02:26:37 (21 years ago)
Author:
Nicholas Riley
Message:

main.c: Properly CFRelease the plist data (thanks again, Lloyd Dupont).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/launch/launch/main.c

    r137 r138  
    688688                            CFStringRef error;
    689689                            CFPropertyListRef infoPlist = CFPropertyListCreateFromXMLData(NULL, plstData, kCFPropertyListImmutable, &error);
     690                            if (plstData != NULL) {
     691                                CFRelease(plstData);
     692                                plstData = NULL;
     693                            }
    690694                            if (infoPlist == NULL) {
    691695                                CFStringGetCString(error, tmpBuffer, STRBUF_LEN, CFStringGetSystemEncoding());
Note: See TracChangeset for help on using the changeset viewer.