Ignore:
Timestamp:
Jun 5, 2008, 5:00:24 AM (14 years ago)
Author:
livings124
Message:

avoid unnecessary memory allocation when updating the rpc access list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r6034 r6047  
    672672    NSString * string = [components componentsJoinedByString: @","];
    673673   
    674     char ** error = (char **)tr_malloc(sizeof(char **));
    675     if (tr_sessionSetRPCACL(fHandle, [string UTF8String], error))
    676     {
    677         NSLog([NSString stringWithUTF8String: *error]);
    678         tr_free(*error);
    679     }
    680     tr_free(error);
     674    char * error = NULL;
     675    if (tr_sessionSetRPCACL(fHandle, [string UTF8String], &error))
     676    {
     677        NSLog([NSString stringWithUTF8String: error]);
     678        tr_free(error);
     679    }
    681680}
    682681
Note: See TracChangeset for help on using the changeset viewer.