Permalink
Browse files

Don't need to store this controller in an instance variable any more

  • Loading branch information...
1 parent 568b4cd commit 8f0bc7c6a9881779501b9d30938ad02b613bd50d @lukeredpath committed Jun 1, 2010
Showing with 1 addition and 7 deletions.
  1. +0 −3 Classes/LROAuth2DemoViewController.h
  2. +1 −4 Classes/LROAuth2DemoViewController.m
@@ -10,19 +10,16 @@
#import "ASIHTTPRequestDelegate.h"
@class LROAuth2AccessToken;
-@class OAuthRequestController;
@interface LROAuth2DemoViewController : UITableViewController <ASIHTTPRequestDelegate> {
LROAuth2AccessToken *accessToken;
- OAuthRequestController *oauthController;
NSArray *friends;
}
@property (nonatomic, retain) LROAuth2AccessToken *accessToken;
@property (nonatomic, retain) NSArray *friends;
- (void)saveAccessTokenToDisk;
- (void)beginAuthorization;
-- (void)refreshAccessToken;
- (void)loadFacebookFriends;
@end
@@ -52,7 +52,6 @@ - (void)viewDidAppear:(BOOL)animated
- (void)dealloc
{
- [oauthController release];
[friends release];
[accessToken release];
[super dealloc];
@@ -84,9 +83,7 @@ - (void)saveAccessTokenToDisk;
- (void)beginAuthorization;
{
- if (oauthController == nil) {
- oauthController = [[OAuthRequestController alloc] init];
- }
+ OAuthRequestController *oauthController = [[OAuthRequestController alloc] init];
[self presentModalViewController:oauthController animated:YES];
[oauthController release];
}

0 comments on commit 8f0bc7c

Please sign in to comment.