Show
Ignore:
Timestamp:
12/13/07 01:49:01 (13 months ago)
Author:
mootoh
Message:

platform/quicksilver/TwitterPlugin: fix possible leak, add a screenshot.

Location:
platform/quicksilver/TwitterPlugin
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • platform/quicksilver/TwitterPlugin/Info.plist

    r3081 r3099  
    1616        <string>BNDL</string> 
    1717        <key>CFBundleVersion</key> 
    18         <string>4F</string> 
     18        <string>60</string> 
    1919        <key>NSPrincipalClass</key> 
    2020        <string>TwitterPlugin</string> 
  • platform/quicksilver/TwitterPlugin/TwitterPluginAction.m

    r3081 r3099  
    1616  // construct request body 
    1717  NSString *content = [NSString stringWithFormat:@"status=%@", [dObject stringValue]]; 
    18   NSLog(content); 
     18  //NSLog(content); 
    1919  [content stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 
    2020 
     
    2323  NSString *screenName = [values valueForKey:@"TwitterPreference.screenName"]; 
    2424  NSString *password   = [values valueForKey:@"TwitterPreference.password"]; 
    25   NSLog(@"screenName:%@, password:%@", screenName, password); 
     25  //NSLog(@"screenName:%@, password:%@", screenName, password); 
    2626 
    2727  // construct request 
     
    4040    receivedData = [[NSMutableData data] retain]; 
    4141  } else { 
    42     NSLog(@"not connected correctly."); 
     42    //NSLog(@"not connected correctly."); 
    4343  } 
    4444 
     
    6161 - (void) connection : (NSURLConnection *) connection  
    6262        didFailWithError : (NSError *) error { 
    63         NSLog(@"didFailWithError 1"); 
     63        //NSLog(@"didFailWithError 1"); 
    6464        // [connection release]; 
    65         // [receivedData release]; 
    66          
    67         NSLog(@"didFailWithError 2"); 
     65        [receivedData release];  
     66        //NSLog(@"didFailWithError 2"); 
    6867} 
    6968 
    7069- (void) connectionDidFinishLoading:(NSURLConnection *)connection { 
    71         NSLog(@"connectionDidFinishLoading: succeeded to load %d bytes", [receivedData length]); 
    72         [(NSData *)receivedData writeToFile:@"/tmp/connectionDidFinishLoading.log" 
    73                 atomically:YES]; 
     70//      NSLog(@"connectionDidFinishLoading: succeeded to load %d bytes", [receivedData length]); 
    7471//      [connection release]; 
    75 //      [receivedData release]; 
     72        [receivedData release]; 
    7673} 
    7774@end