Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

remove unused method from XMLRPCEncoder protocol, fix memory leak in XMLRPCRequest #19

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 4 deletions.
  1. +0 −2  XMLRPCEncoder.h
  2. +2 −2 XMLRPCRequest.m
View
2  XMLRPCEncoder.h
@@ -6,8 +6,6 @@
#pragma mark -
- (void)setMethod: (NSString *)method withParameters: (NSArray *)parameters;
-
-- (void)setParameters: (NSArray*)parameters;
#pragma mark -
- (NSString *)method;
View
4 XMLRPCRequest.m
@@ -13,14 +13,14 @@ - (id)initWithURL: (NSURL *)URL withEncoder: (id<XMLRPCEncoder>)encoder {
myRequest = [[NSMutableURLRequest alloc] init];
}
- myXMLEncoder = encoder;
+ myXMLEncoder = [encoder retain];
}
return self;
}
- (id)initWithURL: (NSURL *)URL {
- return [self initWithURL:URL withEncoder:[[XMLRPCDefaultEncoder alloc] init]];
+ return [self initWithURL:URL withEncoder:[[[XMLRPCDefaultEncoder alloc] init] autorelease]];
}
#pragma mark -
Something went wrong with that request. Please try again.