Changeset 3932

Show
Ignore:
Timestamp:
03/21/06 19:17:32 (3 years ago)
Author:
morris
Message:

Don't over-release

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/net/wi-wired.c

    r3828 r3932  
    4646         
    4747        if(index != WI_NOT_FOUND) { 
    48                 *out_command    = wi_autorelease(wi_string_substring_to_index(buffer, index)); 
    49                 *out_arguments  = wi_autorelease(wi_string_substring_from_index(buffer, index + 1)); 
     48                *out_command    = wi_string_substring_to_index(buffer, index); 
     49                *out_arguments  = wi_string_substring_from_index(buffer, index + 1); 
    5050        } else { 
    5151                *out_command    = wi_autorelease(wi_copy(buffer)); 
     
    7373         
    7474        if(index != WI_NOT_FOUND) { 
    75                 *out_command    = wi_autorelease(wi_string_substring_to_index(string, index)); 
     75                *out_command    = wi_string_substring_to_index(string, index); 
    7676                substring               = wi_string_substring_from_index(string, index + 1); 
    7777                *out_arguments  = wi_autorelease(wi_array_init_with_string(wi_array_alloc(), substring, WI_STR(_WI_WIRED_FIELD_SEPARATOR)));